if(strcmp(cmd, \"/enged\", true) == 0){ if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, \"(( /enged [JátékosID/NévRészlet] ))\"); return 1; } new playa; new randomenged; playa = ReturnUser(tmp); tmp = strtok(cmdtext, idx); if(Admin(playerid, 1)) { if(IsPlayerConnected(playa)) { if(playa != INVALID_PLAYER_ID) { GetPlayerName(playa, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); 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)) { SendClientMessage(playerid, COLOR_WHITE, \"(( /enged [JátékosID/NévRészlet] ))\"); return 1; } format(string, sizeof(string), \"(( Engedted neki a játékot: %s! ))\",giveplayer); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), \"(( %s Engedte neked a játékot! ))\",sendername); SendClientMessage(playerid, COLOR_WHITE, string); randomenged = random(sizeof(RandomEngedSpawn)); SetPlayerPos(playa, RandomEngedSpawn[randomenged][0], RandomEngedSpawn[randomenged][1], RandomEngedSpawn[randomenged][2]); SetPlayerInterior(playa,0); format(string, sizeof(string), \"{ff4d00}(( %s engedélyezte a játékot neki: %s! ))\",sendername,giveplayer); SendFAdminMessage(COLOR_WHITE, string); } } } else { SendClientMessage(playerid, COLOR_WHITE, \"(( Nem vagy admin! ))\"); }}return 1;}
if(strcmp(cmd, \"/enged\", true) == 0) { if(!IsPlayerConnected(playerid)) return 1;if(!Admin(playerid,1)) return SendClientMessage(playerid,COLOR_WHITE,\"(( Nem vagy Admin))\");new giveplayerid;new string[126];tmp = strtok(cmdtext, idx);if(!strlen(tmp)){ SendClientMessage(playerid, COLOR_WHITE, \"Használat: /enged [JátékosID/NévRészlet]\"); return 1;}giveplayerid = ReturnUser(tmp);if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid,COLOR_WHITE,\"Nincs ilyen játékos!\");if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid,COLOR_WHITE,\" A játékos nincs fennt!\");{ new giveplayer[MAX_PLAYER_NAME],sendername[MAX_PLAYER_NAME],randomenged; randomenged = random(sizeof(RandomEngedSpawn)); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), \"(( Engedted neki a játékot: %s! ))\",giveplayer); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), \"(( %s Engedte neked a játékot! ))\",sendername); SendClientMessage(giveplayerid, COLOR_WHITE, string); randomenged = random(sizeof(RandomEngedSpawn)); SetPlayerPos(giveplayerid, RandomEngedSpawn[randomenged][0], RandomEngedSpawn[randomenged][1], RandomEngedSpawn[randomenged][2]); SetPlayerInterior(giveplayerid,0); format(string, sizeof(string), \"{ff4d00}(( %s engedélyezte a játékot neki: %s! ))\",sendername,giveplayer); SendFAdminMessage(COLOR_WHITE, string);} return 1;}