Checkpoint
#1

I need a red checkpoint in this cords:

AddPlayerClass(1,2957.0884,-1485.0145,1.6247,262.0636,0,0,0,0,0,0); // (/save)

So when you enter to it say:
Welcome to the checkpoint.

Can some one explain me how to put one?
Reply
#2

First read this Wiki:
https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint

Second:
PHP код:
SetPlayerCheckpoint(playerid2957.0884, -1485.01451.6247262.0636,3.0); // (/save) 
Reply
#3

pawn Код:
public OnPlayerEnterCheckPoint(....)
{
        SendClientMessage(playerid,-1,"Welcome to the checkpoint!");
}
Reply
#4

Quote:
Originally Posted by Marricio
Посмотреть сообщение
pawn Код:
public OnPlayerEnterCheckPoint(....)
{
        SendClientMessage(playerid,-1,"Welcome to the checkpoint!");
}
And you need this, I didn't read the second part you asked.
Reply
#5

Ok, its done, but I want that if im not near it then the red spot dont show on the hud D:
Reply
#6

Use IsPlayerInRangeOfPoint in a Timer to check whether or not the player is close to the checkpoint
Reply
#7

How I can Make this:

If the player enter to the checkpoint remove $7000 to the player
If the player doesn't have it the return: You have insufficient founds
Reply
#8

?
Reply
#9

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(GetPlayerMoney(playerid) < 7000) return GivePlayerMoney(playerid, -7000);
    SendClientMessage(playerid, 0xFFFFFFFF, "You have insufficient founds");
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)