CMD:spec(playerid,params[])
{
new spec;
if(sscanf(params,\"u\",spec)) return SendClientMessage(playerid, -1, \"Használat: /spec [id]\");
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, spec);
SendClientMessage(playerid, -1, \"Megfigyelés bekapcsolva.\");
SetPlayerInterior(playerid,GetPlayerInterior(spec));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(spec));
if(IsPlayerInAnyVehicle(spec))
{
TogglePlayerSpectating(playerid, 1);
PlayerSpectateVehicle(playerid, GetPlayerVehicleID(spec));
}
return 1;
}