SA-MP Forums Archive
Pls help! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Pls help! (/showthread.php?tid=643891)



Pls help! - Maky184 - 29.10.2017

How to make car respawn after reaching checkpoint ?


Re: Pls help! - Lokii - 29.10.2017

PHP код:
public OnPlayerEnterDynamicCP(playeridcheckpointid)
{
    switch(
checkpointid)
    {
        case 
your_cp:
        {
            if(
IsPlayerInAnyVehicle(playerid))
            {
                
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
            }
        }
    }
    return 
1;




Re: Pls help! - Maky184 - 29.10.2017

Tnx