[Pomoc] /recon

Započeo [GU:RP] ivica 156, Maj 24, 2012, 00:08:58 PRE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:cyber
Detaljan opis problema:ubacio sam novu cmd i idem rconat igraca pise da nije online evo komande
CMD:recon(playerid, params[])
{
if (PlayerInfo[playerid][Admin] >= 1)
{
    new Float:hp, izvr[MAX_PLAYER_NAME], ip[24];
    new string[128];
    new igrac;
    new hIme[MAX_PLAYERS];
    if(sscanf(params, "u", igrac)) return SCM(playerid, SIVA, "Koristite: {BFC0C2}/recon [Korisnicki ID ili dio imena]");
    if(!IsPlayerConnected(igrac)) return SCM(playerid, SIVA, "(greska) Taj igrac nije online!");
//if(PlayerInfo[playerid][Admin] < HEAD && PI[igrac][Admin] >= HEAD) return SCM(playerid, GRAD2, "(greska) Ne mozete koristiti ovu komandu na headadminu!");
    IgracPosmatraIgraca[playerid] = igrac;
    RPIme(igrac, hIme); GetPlayerHealth(igrac, hp); RPIme(playerid, izvr); GetPlayerIp(playerid, ip, 24);
format(string, 64, "Recon: %s(%i), $%d, H: %.1f", hIme, igrac, GetPlayerMoney(igrac), hp);
SCM(playerid, ZELENA, string);
IgracNaReconu[playerid] = true;
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
    new f = 0;
foreach(Player, 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);
//format(CmdString, 128, "| RECON | Izvrsio: %s | Igrac: %s | IP: %s", izvr, hIme, ip);
//UpisiLog(FAJL_RECONLOG, CmdString);
}
else return SCM(playerid, SIVA, "(greska) Niste autorizovani da koristite ovu komandu!");
return 1;
}

Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):