#1

I Want to make a Checkpoint with timer system , But I Have Some bug On my script !! I Want to create checkpoint Like,: Player Must checkpoint For 5 second If player not in checkpoint the mission Is failed .... Please Help me ,, i Dont know How to create this Script .. I Just try And Have some bug Please Help me
Reply
#2

Where are the bug?
Poste it in here.

That might help: https://sampforum.blast.hk/showthread.php?tid=401252
Reply
#3

Show us the code please.
Reply
#4

take this as example
PHP код:
#include <streamer>
new Checkpoint1//at top of script
//Then
public OnGameModeInit()
{
    
Checkpoint1 CreateDynamicCP(Float:xFloat:yFloat:zFloat:sizeworldid = -1interiorid = -1playerid = -1Float:streamdistance 100.0); // Set Your x,y,z coords and size of checkpoint and interior if cp is in any interior
    
return 1;
}
//After this
public OnPlayerEnterDynamicCP(playeridcheckpointid)
{
    if(
checkpointid == Checkpoint1)
    {
        
//Here put your code
                
SendClientMessage(playerid, -1"Info: You are on checkpoint Checkpoint1!");
    }
    return 
1;
}
//Then
public OnPlayerLeaveDynamicCP(playeridcheckpointid)
{
    if(
checkpointid == Checkpoint1)
    {
        
SendClientMessage(playerid0xFF0000FF"Info: You have left the checkpoint mission failed!");
    }
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)