26.12.2012, 21:07
Try :
pawn Код:
CMD:recon(playerid, params[])
{
new id;
if(PlayerInfo[playerid][pAdmin] < 2)return SendClientMessage(playerid, COLOR_WHITE, "Niste ovlasteni");
if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_WHITE, "/recon [playerid]");
else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_WHITE, "Pogresan ID");
TogglePlayerSpectating(playerid, 1);
SetPlayerInterior(playerid, GetPlayerInterior(id));
if(IsPlayerInAnyVehicle(playerid)) PlayerSpectateVehicle(playerid, GetPlayerVehicleID(id));
else PlayerSpectatePlayer(playerid, id);
new string[128];
format(string, sizeof(string), "Sada reconas %s, da ga prestanes reconat koristi: /uncon", PlayerName(id));
SendClientMessage(playerid, Grey, string);
return 1;
}