Where am I suppose to put this script? - 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: Where am I suppose to put this script? (
/showthread.php?tid=80363)
Where am I suppose to put this script? -
Guardian - 04.06.2009
I want this command added to my server but i do not know where to paste it?
What name do I put it under. For example do I put it under gamemodeinit or something?
Where?
GivePlayerWeapon(playerid, 26, 500); //Give playerid sawnoff shotgun with 500 ammo
Re: Where am I suppose to put this script? -
TheUllas - 04.06.2009
Wut?
Do you want to create a pickup? Or a command like /sawnoff?
Re: Where am I suppose to put this script? -
HuRRiCaNe - 04.06.2009
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext,"/sawnoff",true)==0 {
GivePlayerWeapon(playerid, 26, 500); //Give playerid sawnoff shotgun with 500 ammo
SendClientMessage(playerid,red, " You recieved 500 ammo of sawnoff");
return 1;
}
//if is only this command uncomment the line down
//return 0;}
// if not dont uncomment :P
Re: Where am I suppose to put this script? -
efeX - 04.06.2009
Please read the stickies before posting...