27.12.2012, 14:36
No that wouldn't work either :S
pawn Код:
CMD:recon(playerid, params[])
{
new id, string[128];
if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_WHITE, "Niste ovlasteni");
if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_WHITE, "/recon [playerid]");
if(id == INVALID_PLAYER_ID || !IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_WHITE, "Pogresan ID");
TogglePlayerSpectating(playerid, 1);
SetPlayerInterior(playerid, GetPlayerInterior(id));
if(IsPlayerInAnyVehicle(id))
{
new specvehicleid = GetPlayerVehicleID(id);
PlayerSpectateVehicle(playerid, specvehicleid);
}
else
{
PlayerSpectatePlayer(playerid, id);
}
format(string, sizeof(string), "Sada reconas %s, da ga prestanes reconat koristi: /uncon", PlayerName(id));
SendClientMessage(playerid, Grey, string);
return 1;
}