28.11.2012, 12:24
Hey guys can somebody show me how to make a timer to this command like a player can only use the command evry 5min?
Код:
if(strcmp(cmdtext, "/park", true) == 0) { if(IsPlayerInRangeOfPoint(playerid, 50, 1645.7371,-2152.5457,13.5547)) { new m = GetVehicleModel(GetPlayerVehicleID(playerid)); if (m == 525) { if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) { DetachTrailerFromVehicle(GetPlayerVehicleID(playerid)); SafeGivePlayerMoney(playerid,2000); SendClientMessage(playerid, COLOR_YELLOW2, "Message ."); return 1; } { SendClientMessage(playerid, COLOR_WHITE, "Message !!!"); return 1; } } SendClientMessage(playerid, COLOR_WHITE, "Message !!!"); return 1; } SendClientMessage(playerid, COLOR_WHITE, "Message..!!!"); return 1; }