06.01.2013, 16:43
pawn Код:
CMD:mp(spect, params[])
{
new id;
new bool:Spectating;
if(sscanf(params, "u",id))
{
SendClientMessage(playerid,-1,"[ ! ] Use: /spect [id]");
}
else
{
if(IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "[ ! ]Este jogador nгo estб conectado");
if(Specting == 0)
{
new name[MAX_PLAYER_NAME],string[50];
GetPlayerName(id,name,MAX_PLAYER_NAME);
format(string,sizeof(string),"[ ! ] Observando %s.",name);
SendClientMessage(playerid,-1,string);
TogglePlayerSpectating(id, 1);
Spectating == true;
}
else
{
TogglePlayerSpectating(id, 0);
Spectating == false;
SendClientMessage(playerid,-1,"[ ! ] Vocк nгo estб mais observando o player.");
}
}
return 1;
}