Event sistem help
#3

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

This may give you an idea
Reply


Messages In This Thread
Event sistem help - by TheDarkBlade - 20.02.2016, 14:49
Re: Event sistem help - by TheDarkBlade - 20.02.2016, 17:27
Re: Event sistem help - by TuFF12 - 20.02.2016, 17:39
Re: Event sistem help - by TheDarkBlade - 20.02.2016, 17:47
Re: Event sistem help - by TuFF12 - 20.02.2016, 18:01

Forum Jump:


Users browsing this thread: 1 Guest(s)