CHECKPOINT
#1

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);
        }
    } 
Reply
#2

thanks guys.. Fixed
DisablePlayerCheckpoint(playerid);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)