KillTimer
#4

Its already defined as a public callback

here is the code
pawn Код:
forward EndSpawn(playerid);
public EndSpawn(playerid)
{
      if(Assault[playerid] == 1)
      {
       GivePlayerWeapon(playerid,4,0);
       GivePlayerWeapon(playerid,16,2);
       GivePlayerWeapon(playerid,23,400);
       GivePlayerWeapon(playerid,31,700);
       GivePlayerWeapon(playerid,46,1);
       SetPlayerHealth(playerid, 100);
       SendClientMessage(playerid,COLOR_RED,"[DarkyBot]Your anti spawn kill has ended");
      }
      if(Sniper[playerid] == 1)
      {
       GivePlayerWeapon(playerid,4,0);
       GivePlayerWeapon(playerid,24,500);
       GivePlayerWeapon(playerid,27,300);
       GivePlayerWeapon(playerid,34,500);
       for(new i = 0; i < MAX_PLAYERS; i++)
       {
           SetPlayerMarkerForPlayer( i, playerid, ( GetPlayerColor( 1 ) & 0xFFFFFF00 ) );
       }
       SetPlayerHealth(playerid, 100);
       SendClientMessage(playerid,COLOR_RED,"[DarkyBot]Your anti spawn kill has ended");
      }
      if(Engineer[playerid] == 1)
      {
       GivePlayerWeapon(playerid,24,500);
       GivePlayerWeapon(playerid,27,400);
       GivePlayerWeapon(playerid,28,600);
       GivePlayerWeapon(playerid,30,400);  
       SetPlayerHealth(playerid, 100);
       SendClientMessage(playerid,COLOR_RED,"[DarkyBot]Your anti spawn kill has ended");
      }
      if(Pilot[playerid] == 1)
      {
       GivePlayerWeapon(playerid,24,600);
       GivePlayerWeapon(playerid,26,280);
       GivePlayerWeapon(playerid,36,10);
       GivePlayerWeapon(playerid,31,500);
       SetPlayerHealth(playerid, 100);
       SendClientMessage(playerid,COLOR_RED,"[DarkyBot]Your anti spawn kill has ended");
      }
      if(Gunner[playerid] == 1)
      {
       GivePlayerWeapon(playerid,38,200);
       GivePlayerWeapon(playerid,26,500);
       GivePlayerWeapon(playerid,31,800);
       GivePlayerWeapon(playerid,36,30);
       SetPlayerHealth(playerid, 100);
       SendClientMessage(playerid,COLOR_RED,"[DarkyBot]Your anti spawn kill has ended");
      }        
   return 1;
}
Reply


Messages In This Thread
KillTimer - by DarkLored - 19.02.2014, 14:56
Re: KillTimer - by ColeMiner - 19.02.2014, 14:58
Re: KillTimer - by Dignity - 19.02.2014, 14:59
Re: KillTimer - by DarkLored - 19.02.2014, 15:40

Forum Jump:


Users browsing this thread: 1 Guest(s)