limit for cmds
#1

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
Quote:

CMD:heal(playerid, params)
{
SetPlayerHealth(playerid, 100);
return 1;
}

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
Quote:

CMD:vehicle(playerid, params[])
{
new Float, Float:y, Float:z, Float:a;
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;
}

Another thing not releated to the scripting , how can i change my name on this forums?!! .__.
Reply


Messages In This Thread
limit for cmds - by ahmedraed - 18.11.2015, 11:14
Re: limit for cmds - by IceBilizard - 18.11.2015, 11:19
Re: limit for cmds - by ahmedraed - 18.11.2015, 11:41
Re: limit for cmds - by AbyssMorgan - 18.11.2015, 13:51
Re: limit for cmds - by ahmedraed - 18.11.2015, 19:44
Re: limit for cmds - by AbyssMorgan - 18.11.2015, 19:47
Re: limit for cmds - by Jefff - 18.11.2015, 20:04
Re: limit for cmds - by ahmedraed - 18.11.2015, 20:10
Re: limit for cmds - by ahmedraed - 19.11.2015, 16:41
Re: limit for cmds - by TwinkiDaBoss - 19.11.2015, 17:32

Forum Jump:


Users browsing this thread: 1 Guest(s)