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=248117)



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 - Stigg - 12.04.2011

pawn Код:
GivePlayerWeapon(playerid, 31 1000);//Give player M4



Re: Weapon spawner FAST HELP - boyan96 - 12.04.2011

where to put it


Re: Weapon spawner FAST HELP - Stigg - 12.04.2011

Quote:
Originally Posted by boyan96
Посмотреть сообщение
where to put it
pawn Код:
public OnPlayerSpawn(playerid)
Or make a cmd:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
     if(!strcmp(cmdtext, "/m4"))
     {
        GivePlayerWeapon(playerid, 31 1000);//Give player M4
        return 1;
     }
     return 0;
}