19.02.2014, 15:40
Its already defined as a public callback
here is the code
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;
}