CMD:visz(playerid, params[]){ new Float:x,Float:y,Float:z; if(admins[playerid][frakcio] == 1 || admins[playerid][frakcio] == 2) { if(sscanf(params, \"u\", id)) return SendClientMessage(playerid,-1, \"Használhat: /visz <id>\"); { if(admins[id][bilincsbe] == 0) return SendClientMessage(playerid,-1,\"Nincs bilincsben!\");{if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, \"Rossz Játékos ID!\");if(id == playerid) return SendClientMessage(playerid, -1, \"Ne akard saját magad vinni!\"); GetPlayerPos(id,x,y,z);if(!IsPlayerInRangeOfPoint(playerid, 1.75 ,x,y,z)) return SendClientMessage(playerid,-1,\"nincs a közeledben\");admins[id][viszve] = 1;GetPlayerPos(playerid,x,y,z);SetPlayerPos(id,x+2,y+2,z);}}}else return 0;return 1;}forward vitel();public vitel(){ new Float:X, Float:Y, Float:Z; if(admins[id][viszve] == 1){ for(new playerid=0; playerid < MAX_PLAYERS;playerid++){ if(IsPlayerConnected(id)) { GetPlayerPos(playerid,X,Y,Z); SetPlayerPos(id,X+1,Y+1,Z); }}}return 1;}
new Float:x, Float:y, Float:z;
if(admins[playerid][frakcio] == 1 || admins[playerid][frakcio] == 2) { if(sscanf(params, \"u\", id)) return SendClientMessage(playerid,-1, \"Használhat: /visz <id>\"); { if(admins[id][bilincsbe] == 0) return SendClientMessage(playerid,-1,\"Nincs bilincsben!\"); { if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, \"Rossz Játékos ID!\"); if(id == playerid) return SendClientMessage(playerid, -1, \"Ne akard saját magad vinni!\");
GetPlayerPos(id,x,y,z); if(!IsPlayerInRangeOfPoint(playerid, 1.75 ,x,y,z)) return SendClientMessage(playerid,-1,\"nincs a közeledben\"); admins[id][viszve] = 1; GetPlayerPos(playerid,x,y,z); SetPlayerPos(id,x+2,y+2,z);
public vitel() { new Float:X, Float:Y, Float:Z; if(admins[id][viszve] == 1) { for(new playerid=0; playerid < MAX_PLAYERS;playerid++) { if(IsPlayerConnected(id)) { GetPlayerPos(playerid,X,Y,Z); SetPlayerPos(id,X+1,Y+1,Z); } } } return 1; }
forward vitel(playerid,idje);CMD:visz(playerid, params[]){ new Float:x, Float:y, Float:z; if(admins[playerid][frakcio] == 1 || admins[playerid][frakcio] == 2) { if(sscanf(params, \"u\", id)) return SendClientMessage(playerid,-1, \"Használhat: /visz <id>\"); { if(admins[id][bilincsbe] == 1) return SendClientMessage(playerid,-1,\"Már bilincsben!\"); { if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, \"Rossz Játékos ID!\"); if(id == playerid) return SendClientMessage(playerid, -1, \"Ne akard saját magad vinni!\"); GetPlayerPos(id,x,y,z); if(!IsPlayerInRangeOfPoint(playerid, 1.75 ,x,y,z)) return SendClientMessage(playerid,-1,\"nincs a közeledben\"); admins[id][viszve] = 1; TogglePlayerControllable(playerid,params);// lefagyasztom vitel(playerid, params); SetTimer(\"vitel\",1000,true); } } } else return 0; return 1;}public vitel(playerid,idje) { new Float:X,Float:Y,Float:Z; new id; idje= id; if(admins[id][viszve] == 1) { GetPlayerPos(playerid,X,Y,Z); SetPlayerPos(id,X+1,Y+1,Z); } return 1; }