Event Help!
#1

Ok i got everything for a Event Script BUT when i try to /beginevent ( i have put in it to give weapon) but it is giving only the sender! help please I want to give everyone in the event weapons.

here is the script
Код:
public OnGameModeInit()
{
      SetTimer("Event", 500, true);
      return 1;
}
Код:
	if(strcmp(cmd, "/beginevent", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
		    if(PlayerInfo[playerid][pAdmin] >= 4)
		    {
				if(ActiveEvent == 1)
		        {
				    IsEventOn = 1;
					if(IsAtEvent[playerid] == 1)
					{
					SendClientMessageToAll(COLOR_DBLUE, "The event has began!");					             }
		        }
		        else
		        {
		             SendClientMessage(playerid, COLOR_GREY, "   An event had already began!, use /endevent to finish the current event !");
		        }
		    }
		    else
		    {
		    	SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command !");
		    }
	    }
	    return 1;
 }
Код:
public Event(playerid)
{
	if(ActiveEvent == 1)
	{
	  if(IsEventOn == 1)
	  {
		if(PlayerInfo[playerid][pEvent] == 1)
		{
		    SetPlayerHealth(MAX_PLAYERS, EventHP);
		    SetPlayerArmour(MAX_PLAYERS, EventArmour);
		    ResetPlayerAdminWeaponsEx(MAX_PLAYERS);
		    ResetPlayerWeapons(MAX_PLAYERS);
		    GivePlayerAdminGun(MAX_PLAYERS, EventWeapon1);
		    GivePlayerAdminGun(MAX_PLAYERS, EventWeapon2);
		    GivePlayerAdminGun(MAX_PLAYERS, EventWeapon3);
		    GivePlayerAdminGun(MAX_PLAYERS, EventWeapon4);
		    GivePlayerAdminGun(MAX_PLAYERS, EventWeapon5);
		}
	  }
	}
}
Reply


Messages In This Thread
Event Help! - by Hamudi_Chi - 18.12.2010, 15:48
Re: Event Help! - by Benjo - 18.12.2010, 15:56

Forum Jump:


Users browsing this thread: 1 Guest(s)