need some help
#5

Code:
//on the top of your script
new command[MAX_PLAYERS];

//on OnPlayerCommandText
if (!strcmp("/repair", cmdtext))
    {

        {
        if(command[playerid] == 0)
        {
        RepairVehicle(GetPlayerVehicleID(playerid));
        SendClientMessage(playerid, 0xFFFFFFFF, "You repaired your vehicle");
        command[playerid] = 1;
        }
        if(command[playerid] == 1)
		{
		SendClientMessage(playerid,0xF5260FFF,"You already uses this command in this round");
		}
        }
Reply


Messages In This Thread
need some help - by OmarEco - 14.08.2010, 09:08
Re: need some help - by Arrows73 - 14.08.2010, 09:13
Re: need some help - by OmarEco - 14.08.2010, 09:14
Re: need some help - by OmarEco - 14.08.2010, 09:16
Re: need some help - by billiout - 14.08.2010, 09:24
Re: need some help - by OmarEco - 14.08.2010, 09:25
Re: need some help - by Claude - 14.08.2010, 09:33
Re: need some help - by OmarEco - 14.08.2010, 09:36
Re: need some help - by OmarEco - 14.08.2010, 09:41
Re: need some help - by Claude - 14.08.2010, 09:44

Forum Jump:


Users browsing this thread: 1 Guest(s)