SA-MP Forums Archive
Weapon spawner FAST HELP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Weapon spawner FAST HELP (/showthread.php?tid=248188)



Weapon spawner FAST HELP - boyan96 - 12.04.2011

hello i have a promlem
how i can make when player connet to give him sawn-noff
i make it like this didn't work
Код:
public OnPlayerConnect(playerid)
{
GivePlayerWeapon(playerid, 26,10000000);
	return 1;
}
and this don't work
Код:
public OnPlayerSpawn(playerid)
{
GivePlayerWeapon(playerid, 26,10000000);
	return 1;
}
how to make it please help me


Re: Weapon spawner FAST HELP - Alby Fire - 12.04.2011

pawn Код:
//Into your OnGameModeInit
AddPlayerClass(SKIN_ID, X, Y, Z, ANGLE, 26, 1000000, 0, 0, 0, 0);



Re: Weapon spawner FAST HELP - boyan96 - 12.04.2011

didn't work


Re: Weapon spawner FAST HELP - Alby Fire - 12.04.2011

pawn Код:
forward GW(playerid);
public GW(playerid) {
    GivePlayerWeapon(playerid, 26, 1000000);
}
//Into your OnPlayerSpawn
SetTimerEx("GW",false,250,"d",playerid);



Re: Weapon spawner FAST HELP - boyan96 - 12.04.2011

thank you man very-much
Can you say me what to remove from my gamemode because my player have only weapon i the hand


Re: Weapon spawner FAST HELP - CrazyBlob - 12.04.2011

try this

Код:
SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 999)
NOT TESTED!!!!