06.11.2015, 15:54
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", 3000, 6);
SetPlayerCheckpoint(playerid, -235.4525,2751.0286,62.6712, 5.0);
SendClientMessage(playerid, red, "USA Attacked AUSTRALIAN PROTOTYPE");
}
PHP код:
new playervehicleid = GetPlayerVehicleID(playerid);
if(gTeam[playerid] == TEAM_USA)
{
if(playervehicleid == CAR_AUS)
{
SetPlayerScore(playerid, GetPlayerScore(playerid) + 6);
SetPlayerMoney(playerid, GetPlayerMoney(playerid) + 5000);
SendClientMessage(playerid, red, "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);
}
}