20.02.2016, 17:39
PHP код:
CMD:startevent(playerid, prams[])
{
If(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not a admin to start a event");//Check if the player is admin
for (new i = 0; i < GetMaxPlayers(); i++)//loop throught all the players
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i))//check if player is connected and if its not a BOT
{
SetPlayerPos(i, x,y,z);// Set the player PoS X, Y, Z
GivePlayerWeapon(playerid, 26, 99999);// Gives Players sawn-off shotgun to fight
GameTextForAll(i, "~r~Sawn-off shotgun",5000,3);//Game Text For All Players
}
}
return 1;
}

