Quote:
Originally Posted by Eth
pawn Код:
CMD:dropcar(playerid, params[]) { new string[128]; new vehicleid = GetPlayerVehicleID(playerid); if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command."); if(!vehicleid) return SendClientMessage(playerid, COLOR_GREY, "You must be inside a vehicle to use this command."); if(dropping[playerid] == false) return format(string, sizeof(string), "You need to wait {FF6347}%d{33CCF}more seconds before doing dropcar again.", DropTime[playerid]),SendClientMessage(playerid, COLOR_GREY, string); if(GetPlayerVehicleID(playerid) != 0) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 2505.8506, -2629.0144, 13.2944, 5); SendClientMessage(playerid, COLOR_LIGHTBLUE, "Deliver car to the Los Santos Docks!"); dropping[playerid] = true; } return 1; }
|
Thanks but when im doin /dropcar server shows that i have to wai 0 secs.