public OnPlayerCommandText(playerid, cmdtext[]){new tmp[24];new idx;new cmd[256];cmd = strtok(cmdtext, idx);new string[100];new param[10][32];new params = Parameterek(cmdtext);if(params > 0){new params_szamlalo = 1;while(params_szamlalo <= params && params_szamlalo < sizeof(param)){ param[params_szamlalo] = GetParam(cmdtext, params_szamlalo); params_szamlalo++;}}if (strcmp(\"/boom\", cmdtext, true, 10) == 0){ if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, \"HASZNÁLAT: /boom [JátékosID/NévRészlet]\"); return 1; } new para1; para1 = ReturnUser(tmp); if(AdminPlayer(playerid, ) { new Float:x, Float:y, Float:z; GetPlayerPos(para1, x,y,z); CreateExplosion(x,y,z, 0, 10.0); new plName[100]; new pName[100]; GetPlayerName(playerid, plName, sizeof(plName)); GetPlayerName(para1, pName, sizeof(pName)); format(string,sizeof(string),\"{B8860B}%s {9EC73D}felrobbantotta {B8860B}%s.\", plName, rag(pName, 3)); SendClientMessageToAll(COLOR_WHITE, string); }}return 1;}return SendClientMessage(playerid,COLOR_LIGHTRED,\"Nincs ilyen parancs.\");}
if(strcmp(cmd, \"/boom\", true) == 0){ if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, \"HASZNÁLAT: /boom [JátékosID/NévRészlet]\"); return 1; } new para1; para1 = ReturnUser(tmp); if(AdminPlayer(playerid, ) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { new Float:x, Float:y, Float:z; GetPlayerPos(para1, x,y,z); CreateExplosion(x,y,z, 0, 10.0); new plName[100]; new pName[100]; GetPlayerName(playerid, plName, sizeof(plName)); GetPlayerName(para1, pName, sizeof(pName)); format(string,sizeof(string),\"{B8860B}%s {9EC73D}felrobbantotta {B8860B}%s.\", plName, rag(pName, 3)); SendClientMessageToAll(COLOR_WHITE, string); } } } else { SendClientMessage(playerid, COLOR_GRAD1, \"Nem vagy Admin!\"); }}return 1;}