adding weapons
#1

hello world!!!
i want some one to help me to add more weapons when a player spawns(the maximum is 3 i think :/)
but i want to add more is there any way how?
what i mean is this:
AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); 1st 2nd 3rd weapons

but how do i add more weapons thanks in advance
Reply
#2

https://sampwiki.blast.hk/wiki/Function:GivePlayerWeapon

Well just add this on spawn XD
Reply
#3

so ur saying is add this under
public OnGameModeInit( )
??
Reply
#4

No he mean in the Callback:

pawn Код:
OnPlayerSpawn(playerid)
Reply
#5

pawn Код:
public OnPlayerSpawn(playerid)
{
   GivePlayerWeapon(playerid,WEAPONID,WEAPONAMMO);
   GivePlayerWeapon(playerid,WEAPONID,WEAPONAMMO);
   GivePlayerWeapon(playerid,WEAPONID,WEAPONAMMO);
   GivePlayerWeapon(playerid,WEAPONID,WEAPONAMMO);
   GivePlayerWeapon(playerid,WEAPONID,WEAPONAMMO);
   GivePlayerWeapon(playerid,WEAPONID,WEAPONAMMO);
   return 1;
}
Reply
#6

ahhh thanks man!!! :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)