12.01.2012, 22:06
Well this command ain't working...
Anyone knows why?
Код HTML:
if (strcmp("/deliver", cmdtext, true) == 0) { new vehicle; vehicle = GetPlayerVehicleID(playerid); if(vehicle > Missioncar) { if(!IsPlayerInRangeOfPoint(playerid, 20.0, -2329.4565,2299.1106,3.5000)) { SendClientMessage(playerid, COLOR_RED, "<!>You are not near the dropoff point!"); return 1; } GivePlayerMoney(playerid, 500); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); SendClientMessage(playerid, COLOR_LIGHTBLUE, "<!>Mission done! You have been awarded!"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "<!>You have received 100HP, 100Armour and 500$!"); DestroyVehicle(Missioncar); SendClientMessageToAll(COLOR_BLUE, "<!>Mission is done! USA did it!"); return 1; } return 1; }