pawn Код:
if(strcmp(cmd, "/pdescarregar", true) == 0)
{
if(PlayerToPoint(7.0,playerid,70.1893,1217.8599,18.8121,344.2356) || PlayerToPoint(7.0,playerid,611.6555,1689.0900,6.9922,309.2994) || PlayerToPoint(7.0,playerid,1382.3217,463.9579,20.1826,245.9821) || PlayerToPoint(7.0,playerid,1004.7685,-936.3447,42.3281,70.4432) || PlayerToPoint(7.0,playerid,1939.7410,-1771.8391,13.3828,200.2700)
|| PlayerToPoint(7.0,playerid,795.9287,-2205.5881,31.2641,298.5576) || PlayerToPoint(7.0,playerid,-92.0682,-1171.1246,2.3862,321.0089) || PlayerToPoint(7.0,playerid,-1607.0314,-2713.5286,48.5335,232.8636) || PlayerToPoint(7.0,playerid,-2243.9199,-2561.4854,31.9219,342.6190) || PlayerToPoint(7.0,playerid,-2029.1166,155.4289,28.8359,4.4180)
|| PlayerToPoint(7.0,playerid,2202.6016,2475.6174,10.8203,269.2441) || PlayerToPoint(7.0,playerid,2113.1165,919.7891,10.8203,88.2836) || PlayerToPoint(7.0,playerid,2638.0884,1105.5858,10.8203,285.6161)) {
new vehicleid = GetPlayerVehicleID(playerid);
new currentveh = GetVehicleTrailer(vehicleid);
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) {
if(GetVehicleModel(GetVehicleTrailer(vehicleid)) == 584) {
SendClientMessage(playerid, COLOR_GREEN, "| INFO | Petrуleo descarregado, vocк ganhou $1500!");
GivePlayerGrana(playerid,1500);
DisablePlayerCheckpoint(playerid);
SetVehicleToRespawn(currentveh);
return 1;
} else
if(GetVehicleModel(GetVehicleTrailer(vehicleid)) == 584) {
SendClientMessage(playerid, COLOR_GREEN, "| ERRO | Vocк nгo estб carregado de petroleo.");
return 1;
}
}
}
else {
SendClientMessage(playerid, COLOR_RED, "| ERRO | Vocк nгo estб no posto.");
return 1;
}
}