01.03.2018, 02:52
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
__________________________________________________ _________________________
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
__________________________________________________ _________________________