SA-MP Forums Archive
how to do a CP (like ammunation's one) - 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: how to do a CP (like ammunation's one) (/showthread.php?tid=170918)



how to do a CP (like ammunation's one) - pmk1 - 24.08.2010

hello people, i'd like to know how can i make a checkpoint just like ammunation's where we can buy weapons. or is there a way to make a pickup called once, then not again until the player returns on it? because i tried making a pickup CP-like but onplayerpickuppickup is called again and again... thanks for helping me


Re: how to do a CP (like ammunation's one) - Pawno_Master - 24.08.2010

CreateCheckpoint I guess, but that only fits 1 pickup.
I suggest you download a checkpoint streamer, than read some tutorials on Sa:Mp wiki about menus/dialogs.

GivePlayerWeapon(playerid, weaponid, ammo); < Will give the player a weapon.
GivePlayerMoney(playerid, -amount); <Will fine the player that amount, don't forget the " - "


Re: how to do a CP (like ammunation's one) - pmk1 - 24.08.2010

lol i already know using dialogs and the functions u gave me... anyway CreateCheckpoint doesn't exist... its only setplayercheckpoint