Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YCMD:recon(playerid, params[], help)
- {
- if (PlayerInfo[playerid][pGM] >= 1 || PlayerInfo[playerid][pAdmin] >= 1)
- {
- new igrac, hIme[MAX_PLAYER_NAME], Float:hp, izvr[MAX_PLAYER_NAME];
- if(sscanf(params, "u", igrac)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Koristite: {FFFFFF}/recon [Korisnicki ID ili Ime Korisnika]");
- if(!IsPlayerConnected(igrac)) return SendClientMessage(playerid,-1, ""CRVENA "Greska |{FFFFFF} Taj igrac nije online!");
- GetPlayerName(igrac, hIme, sizeof(hIme));
- GetPlayerHealth(igrac, hp);
- IgracNaReconu[playerid] = true;
- GetPlayerName(playerid, izvr, sizeof(izvr));
- format(CmdString, 64, "|RECON| %s(%i), $%d, H: %.1f", hIme, igrac, PlayerInfo[igrac][pNovacDzep], hp);
- SendClientMessage(playerid, CRVENA3, CmdString);
- new string[128];
- format(string,sizeof(string),""SPLAVA"|A|Recon| %s recona igraca "BELA"%s !",GetName(playerid),GetName(igrac));
- APoruka(-1,string);
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- new f = 0;
- ploop(i)
- {
- if(GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid)) f++;
- }
- if(f == 0) SetVehicleToRespawn(GetPlayerVehicleID(playerid));
- }
- SetPlayerInterior(playerid, GetPlayerInterior(igrac));
- SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(igrac));
- TogglePlayerSpectating(playerid, 1);
- if(IsPlayerInAnyVehicle(igrac)) PlayerSpectateVehicle(playerid, GetPlayerVehicleID(igrac));
- else PlayerSpectatePlayer(playerid, igrac);
- }
- else return SendClientMessage(playerid,-1, ""BELA "[{F81414}Anti-Cheat{FFFFFF}]{DBDBDB} Admini samo!");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement