PHP код:
COMMAND:winforsir(playerid, params[])
{
if(Player[playerid][vip] > 0)
{
SendClientMessageToAll(-1, "{FF0000}Another win for sir{01DF3A}!");
new Float:pos[3];
for(new i; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
GetPlayerPos(i, pos[0], pos[1], pos[2]);
PlayerPlaySound(i, 5462,pos[0], pos[1], pos[2]);
}
}
else
{
Server(playerid, "This command only for VIP's.");
}
return 1;
}