Command Issue
#3

try this

pawn Код:
CMD:joinevent( playerid, params[] )
{
    if( eventstarted == 1 )
    {
        if(joinedevent == 1) return SendClientMessage(playerid, COLOR_WHITE, "You're already in the event.");
        if(Events == 0) return SendClientMessage(playerid, COLOR_WHITE, "Theres No events Running at the moment.");
        if(eventlocked == 1) return SendClientMessage(playerid, COLOR_WHITE, "The Event is not Accepting New Players");
       
        joinedevent = 1;
        SetPlayerPos( playerid, eventpos[0], eventpos[1], eventpos[2] );
        ResetPlayerWeapons(playerid);
        GivePlayerWeapon( playerid, eventweapon );
        SendClientMessage(playerid, -1, "{FFFFFF}You {2BEA15}joined {FFFFFF}the event.");
    }
    return 1;
}
Reply


Messages In This Thread
Command Issue - by AaronKillz - 19.09.2012, 00:00
Re: Command Issue - by Backwardsman97 - 19.09.2012, 02:09
Re: Command Issue - by XtremeR - 19.09.2012, 05:44

Forum Jump:


Users browsing this thread: 2 Guest(s)