/*public OnPlayerEnterCheckpoint(playerid)
{
if (IsPlayerInRangeOfPoint(playerid, 7.0,cardelckp1))
{
GivePlayerMoney(playerid, 1000);
RemovePlayerFromVehicle(playerid);
DisablePlayerCheckpoint(playerid);
GameTextForPlayer(playerid, "~y~You Completed The Deliver, Well Done!", 3000, 1);
{*/
if (VehicleHealt = 100))//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<This is not exist
{
GivePlayerMoney(playerid, 300);
GameTextForPlayer(playerid, "~y~Great You Deliver It In Perfect Condition Bonus 300$!", 3000, 3);
}
return 1;
}
Originally Posted by Etch ❽ H
so what's the problem??
|
if (VehicleHealt = 100))
if (VehicleHealt == 100))
new Float:VehicleHealt;//assuming you really meant VehicleHealt and not VehicleHealth public OnPlayerEnterCheckpoint(playerid) { if (IsPlayerInRangeOfPoint(playerid, 7.0,cardelckp1)) { GivePlayerMoney(playerid, 1000); GetVehicleHealth(GetPlayerVehicleID(playerid),VehicleHealt); RemovePlayerFromVehicle(playerid); DisablePlayerCheckpoint(playerid); GameTextForPlayer(playerid, "~y~You Completed The Deliver, Well Done!", 3000, 1); { if (VehicleHealt == 1000))//Change 1000 to max vehicle health, cuz I honestly do not know. { GivePlayerMoney(playerid, 300); GameTextForPlayer(playerid, "~y~Great You Deliver It In Perfect Condition Bonus 300$!", 3000, 3); } return 1; }
Originally Posted by maij
First of
Код:
if (VehicleHealt = 100)) Probably unintended statement so change it to Код:
if (VehicleHealt == 100)) don't forget it make it a float and get the vehicle health. Код:
new Float:VehicleHealt;//assuming you really meant VehicleHealt and not VehicleHealth public OnPlayerEnterCheckpoint(playerid) { if (IsPlayerInRangeOfPoint(playerid, 7.0,cardelckp1)) { GivePlayerMoney(playerid, 1000); GetVehicleHealth(GetPlayerVehicleID(playerid),VehicleHealt); RemovePlayerFromVehicle(playerid); DisablePlayerCheckpoint(playerid); GameTextForPlayer(playerid, "~y~You Completed The Deliver, Well Done!", 3000, 1); { if (VehicleHealt == 1000))//Change 1000 to max vehicle health, cuz I honestly do not know. { GivePlayerMoney(playerid, 300); GameTextForPlayer(playerid, "~y~Great You Deliver It In Perfect Condition Bonus 300$!", 3000, 3); } return 1; } |
public OnPlayerEnterCheckpoint(playerid)
{
if (IsPlayerInRangeOfPoint(playerid, 7.0,cardelckp1))
{
GivePlayerMoney(playerid, 10000);
RemovePlayerFromVehicle(playerid);
DisablePlayerCheckpoint(playerid);
GameTextForPlayer(playerid, "~y~You Completed The Deliver, Well Done!", 3000, 1);
new Float:health;
GetVehicleHealth(pcar1, health);
if(health >500)
{
GivePlayerMoney(playerid, 3000);
GameTextForPlayer(playerid, "~y~Great You Deliver It In Perfect Condition Bonus 300$!", 3000, 3);
}
}
return 1;
}