SA-MP Forums Archive
CHECKPOINT - 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: CHECKPOINT (/showthread.php?tid=593520)



CHECKPOINT - sanamalik400 - 06.11.2015

Hello SAMP .. i have this problem when i stole VEHICLE/ it works fine .. it showing me cp.. but when i enter cp and i got my reward .. but cp not hiding..it still shwing to me.. sorry for my bad english.. i hope u understand
PHP код:
new vehicleid
        if(
newstate == PLAYER_STATE_DRIVER
        { 
        
vehicleid GetPlayerVehicleID(playerid); 
        if(
gTeam[playerid] == TEAM_USA && vehicleid == CAR_AUS
        { 
            
GameTextForPlayer(playerid"~p~~n~~n~AUSTRALIA PROTOTYPE!~n~~w~Take it to USA Base"30006); 
            
SetPlayerCheckpoint(playerid, -235.4525,2751.0286,62.67125.0); 
              
SendClientMessage(playeridred"USA Attacked AUSTRALIAN PROTOTYPE"); 
        } 
PHP код:
new playervehicleid GetPlayerVehicleID(playerid);
    if(
gTeam[playerid] == TEAM_USA)
    {
        if(
playervehicleid == CAR_AUS)
        {
                
SetPlayerScore(playeridGetPlayerScore(playerid) + 6);
                
SetPlayerMoney(playeridGetPlayerMoney(playerid) + 5000);
                
SendClientMessage(playeridred"USA Captured AUSTRALIAN PROTOTYPE");
                
SendClientMessage(playerid,COLOR_YELLOW,"*You Have SuccesFully Captured AUSTRALLIAN Team PROTOTYPE ,"cgreen" +6 Score. And $5000 As reward");
                
SetVehicleToRespawn(CAR_AUS);
        }
    } 



Re: CHECKPOINT - sanamalik400 - 06.11.2015

thanks guys.. Fixed
DisablePlayerCheckpoint(playerid);