Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ______ _ _ ______
- //| ___ \ | | | |___ /
- //| |_/ / |__ __ _ _ __ | |_ ___ _ __ ___ / /
- //| __/| '_ \ / _` | '_ \| __/ _ \| '_ ` _ \ / /
- //| | | | | | (_| | | | | || (_) | | | | | |./ /___
- //\_| |_| |_|\__,_|_| |_|\__\___/|_| |_| |_|\_____/
- CMD:askquestion(playerid, params[])
- {
- new question[128], pname[24];
- if(sscanf(params, "s[128]", question))
- {
- SendClientMessage(playerid, 0xC0C0C0AA, "Usage:/ask <your question>");
- }
- else
- {
- GetPlayerName(playerid, pname, 24);
- for(new i = 0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && IsPlayerAdmin(i))
- {
- new str[128];
- format(str, sizeof(str), "Question From %s(%d) : %s", pname, playerid, question)
- SendClientMessage(i, 0xFFFFFFAA, str);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment