PDA

View Full Version : How to make CP for ammu...


Jithu
01/03/2018, 02:52 AM
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
__________________________________________________ _________________________

Jithu
01/03/2018, 05:34 AM
please someone tell me >>~!!!

PepsiCola23
01/03/2018, 08:57 AM
I would use pickups for entrances and use OnPlayerPickUpPickup