18.11.2015, 11:14
(
Последний раз редактировалось ahmedraed; 18.11.2015 в 11:47.
)
Guys, i wanna learn how to like make a limit for the cmd
ex: if i used /heal i cant use it till 2minutes pass, can you help me? this is just an example
btw: this is my vehicle cmd,i want if i didn't enter a value for the color it spawns the car with any color but if i typed the color it spawns with the color
Another thing not releated to the scripting , how can i change my name on this forums?!! .__.
ex: if i used /heal i cant use it till 2minutes pass, can you help me? this is just an example
Quote:
CMD:heal(playerid, params) { SetPlayerHealth(playerid, 100); return 1; } |
Quote:
CMD:vehicle(playerid, params[]) { new Float ![]() new vehicleid, color1, color2; if(sscanf(params, "iii", vehicleid, color1, color2)) return SendClientMessage(playerid, RED, "ERROR: /v [Vehicle ID] [Color1] [Color2]"); if(vehicleid > 611 || vehicleid < 400) return SendClientMessage (playerid, RED, "ERROR: Vehcile ID Must Be Between 400 & 611"); GetPlayerPos(playerid, x, y ,z); GetPlayerFacingAngle(playerid, a); vehicleid = CreateVehicle(vehicleid, x, y, z, a, color1, color2, 60, 0); PutPlayerInVehicle(playerid, vehicleid, 0); return 1; } |