CMD:bilincs(playerid, params[]){newFloat:x,Float:y,Float:z;for(new i = 0; i < MAX_PLAYERS; i++){if(GetPlayerTeam(playerid) != Rendor){GetPlayerPos(i, x, y, z); { if(IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z)) { if(IsPlayerBilincsed == 0) { GameTextForPlayer(i, \"~b~Megbilincselve!\", 1500, 0); TogglePlayerControllable(i, 0); ApplyAnimation(playerid, \"PED\", \"cower\", 1, 1, 0, 0, 0, 0, 1); } }}}}return 1;}
CMD:bilincs(playerid, params[]){new giveplayerid;if(sscanf(params,\"r\",giveplayerid)) { return SendClientMessage(playerid,0xFF6600FF,\"Parancs: /bilincs [Játékos ID / Név]\"); }if(playerid == giveplayerid) { return SendClientMessage(playerid,0xFF6600FF,\"Nem tudod magadat megbilincselni !\"); }if(GetPlayerTeam(playerid) != Rendor) { return SendClientMessage(playerid,0xFF6600FF,\"Nem vagy rendõr !\"); }if(!IsPlayerInRangeOfPoint(giveplayerid, 2.0, x, y, z)) { return SendClientMessage(playerid,0xFF6600FF,\"Ez a játékos nincs a közeledben !\"); }if(IsPlayerBilincsed == 1) { return SendClientMessage(playerid,0xFF6600FF,\"Ez a játékos már meg van bilincselve !\"); }//new Float:x,Float:y,Float:z; GetPlayerPos(playerid, x, y, z);GameTextForPlayer(i, \"~b~Megbilincselve!\", 1500, 0);TogglePlayerControllable(i,0);ApplyAnimation(playerid, \"PED\", \"cower\", 1, 1, 0, 0, 0, 0, 1);return 1;}
if(GetPlayerTeam(playerid) != Rendor)
GetPlayerPos(i, x, y, z);
if(IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z))
if(!IsPlayerConnected(playerid)) { SendClientMessage(...); return 1; }if(!IsPlayerAdmin(playerid)) { SendClientMessage(...); return 1; }// Funkció
if(IsPlayerConnected(playerid)){ if(!IsPlayerAdmin(playerid)) { // Funkció } else { SendClientMessage(...); return 1; }}else { SendClientMessage(...); return 1; }
if(i!=playerid)