Checkpoints
#1

How can i make a check point dissappear after soon long, i had a look at SetTimerex but not to sure how to implent it.
Reply
#2

Have a look at the wiki - https://sampwiki.blast.hk/wiki/SetTimerEx
You need to make a new callback which will be getting called by the timer.
In the callback, you will have to destroy the checkpoint - https://sampwiki.blast.hk/wiki/DisablePlayerCheckpoint
Reply
#3

You mean that if he went to the checkpoint it will disappear?
Reply
#4

Do you have any over exmaples as i cant figure out how to change it to work with "DestoryCheckpoint" and "DisablePlayerCheckpoit".

Many Thanks.
Reply
#5

Quote:
Originally Posted by Yahav
Посмотреть сообщение
You mean that if he went to the checkpoint it will disappear?
No i mean that after a certian amount of time it would dissappear if it has not be reached.
Reply
#6

Ok ive havent tried to put it in my script yet as im dont full understand the Settimerex i dont understand what to put here where this text is "is", 1337, "hello!.

Код:
forward Challange1();
 
public OnGameModeInit()
{
    print("You Have 30 Seconds To Get To The Checkpoint GO GO GO!!!!!!!");
    SetTimerEx("Challange1", 30000, false, "is", 1337, "hello!");
}
 
public Challange1(second, msg[])
{
    DestoryCheckpoint(Challange1);
    DisablePlayerCheckpoit(playerid);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)