SA-MP Forums Archive
How to make CP for ammu... - 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)
+--- Thread: How to make CP for ammu... (/showthread.php?tid=650491)



How to make CP for ammu... - Jithu - 01.03.2018

I want to make CP for buying guns from ammu - nation also enter/exit

Does this works??

#include <streamer>

new CP_AmmuEnt;
new CP_AmmuExit;

Downside the GameModeInIt();

new CP_AmmuEnt = CreateCheckpoint(size, co-ordinates);
new CP_AmmuExit = CreateCheckpoint(sizeof, co-ordinates);

after that,

Downside the OnPlayerEnterCheckpoint

if(IsPlayerInRangeOfPoint(playerid, co-ordinates of ammu entering))
{
SetPlayerPos(playerid, co-ordinates of entering ammu);
}

then

if(IsPlayerInRangeOfPoint(playerid, co-ordinates of ammu exiting))
{
SetPlayerPos(playerid, co-ordinates of exiting ammu);
}

This works??

And i want to know that how to make checkpoint for buying too , guns!


__________________________________________________ _________________________
T H A N K S
__________________________________________________ _________________________


Re: How to make CP for ammu... - Jithu - 01.03.2018

please someone tell me >>~!!!


Re: How to make CP for ammu... - PepsiCola23 - 01.03.2018

I would use pickups for entrances and use OnPlayerPickUpPickup