CheckPoint Help
#1

Hey Guys, I want to make a checkpoint in serveral places but i want it that if you enter the checkpoints it gives you score and money

Reply
#2

If you dont already have it, download streamer: https://sampforum.blast.hk/showthread.php?tid=102865
Streamer allows the creation of multiple checkpoints, however only one can be showing at a time.

To create a checkpoint(CP) use

pawn Код:
new CP;
pawn Код:
CP = CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 200.0, Float:drawdistance = 0.0);
Now, to call a function when you enter the CP

pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid);
{
    if(checkpointid == CP)
    {
       GivePlayerScore(playerid, score)
       GivePlayerMoney(playerid, money)
    }
    return 1;
}
Reply
#3

CreateDynamicObject or CreateDynamicCP ??
Reply
#4

Quote:
Originally Posted by kirostar
Посмотреть сообщение
CreateDynamicObject or CreateDynamicCP ??
Sorry, CreateDynamicCP
pawn Код:
CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)