12.08.2011, 07:49
pawn Код:
COMMAND:stebeti(playerid,params[])
{
new zid;
if(sscanf(params, "u", zid)) return SendClientMessage(playerid, 0xFF0000AA, "{FBDF89}[FunZoneLT]>> /stebeti [zaidejoid]");
if(IsPlayerConnected(zid))
{
if(ALygis[playerid] >= 1)
{
TogglePlayerSpectating(playerid, 1);
if(IsPlayerInAnyVehicle(zid))
{
PlayerSpectateVehicle(playerid,GetPlayerVehicleID(zid), SPECTATE_MODE_NORMAL);
}
else
{
PlayerSpectatePlayer(playerid, zid, SPECTATE_MODE_NORMAL);
}
SendClientMessage(playerid, orandzine, "{FBDF89}[FunZoneLT]>> Jus dabar stebite, kad baigtumete stebeti rasykite /nestebeti");
}
else SendClientMessage(playerid, raudona, "[FunZoneLT]>> Jus negalite naudoti sitos komandos.");
}
else SendClientMessage(playerid, raudona, "[FunZoneLT]>> Tokio zaidejo nera.");
return 1;
}