COMMAND:announce(playerid,params[]){ if(isnull(params)) return SendClientMessage(playerid, -1, \"Használat: /announce [szöveg]\"); GameTextForAll(params,5000,3); return 1;}
if(strcmp(cmdtext, \"/announce\", true)){ new string[ 128 ], idx ; if(!IsPlayerAdmin(playerid)) return 0; new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= \' \')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) return SendClientMessage(playerid, -1, \"Használat: /announce [szöveg]\"); format(string, sizeof(string), \"%s\", result); GameTextForAll(string, 5000, 3); return 1;}
new param;
CMD:announce(playerid, params[]) {if(sscanf(params, \"s[256]\", param)) return SendClientMessage(playerid, 0xFF9933AA, \"Használat: {FFFFFF}/announce [szöveg]\");else{ format(GameString, sizeof GameString, \"%s\", param);GameTextForAll(GameString, 3000, 3);}return 1;}
CMD:announce(playerid, params[]){ if(CESRAdminisztrator(playerid)){new szoveg[128];if(sscanf(params, \"s[128]\", szoveg)) return SendClientMessage(playerid, PIROS, \"Használat: /announce [szöveg]\");GameTextForAll(szoveg, 8000, 3);}else{SendClientMessage(playerid, 0xFF0000AA, \"Nem vagy adminisztrátor!\");}return 1;}
CMD:announce(playerid,params[]){new szoveg[256],idx;szoveg = strtok(params,idx);if(isnull(params)) return SendClientMessage(playerid,-1,\"Használat: /announce [szöveg]\");GameTextForAll(szoveg,5000,3);return 1;}
Ifes Parancsba valaki létszí