11.06.2014, 17:40
pawn Код:
if (PRESSED( KEY_FIRE ))
{
if(isDead[playerid] == 1)
{
new stringn[128];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
TogglePlayerSpectating(playerid, 1);
new name[MAX_PLAYER_NAME];
GetPlayerName(random(i), name, sizeof(name));
PlayerSpectatePlayer(playerid, random(i));
format(stringn, sizeof(stringn),"You are spectating %s", random(i));
SendClientMessage(playerid, -1, stringn);
new name1[MAX_PLAYER_NAME];
new stringxD[300];
GetPlayerName(playerid, name1, sizeof(name1));
format(stringxD, sizeof(stringxD),"%s is spectating you", name1);
SendClientMessage(random(i),-1,stringxD);
}
}
}
return 1;
}