[Tutorial] Simple repair cmd.
#1

Are you bored of repair filterscripts and you want to make your own repair system?

For now u can but /r or /repair cmd into your gamemode.

For starting add:
pawn Code:
if (!strcmp("/r", cmdtext))
    {
///this is becus u cant use repair command then...

Then add into next line :
pawn Code:
if(!IsPlayerInAnyVehicle(playerid))///server is stupid when server doesent know is player in vehicle or not.. -_-
Next add the
pawn Code:
return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in the vehicle!");
Wait bro add it in the same line...

in next line add :
pawn Code:
RepairVehicle(GetPlayerVehicleID(playerid));
///server needs repairing system u dumb bro..

in next line add:
pawn Code:
SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle is 1337% repaired!");
and for the end add into next line:
pawn Code:
return 1;
Its the end... Got any warning/error message? Comment or pm it!
Reply


Messages In This Thread
Simple repair cmd. - by Ryox175 - 01.09.2013, 13:02
Re: Simple repair cmd. - by doreto - 01.09.2013, 13:46
Re: Simple repair cmd. - by Ryox175 - 01.09.2013, 14:14
Re: Simple repair cmd. - by doreto - 01.09.2013, 14:51
Re: Simple repair cmd. - by DanishHaq - 01.09.2013, 16:09
Re: Simple repair cmd. - by Konstantinos - 01.09.2013, 16:14
Re: Simple repair cmd. - by DanishHaq - 01.09.2013, 16:16
Re: Simple repair cmd. - by Rayco - 01.09.2013, 19:33
Re: Simple repair cmd. - by Vince - 01.09.2013, 20:21
Re : Simple repair cmd. - by Matnix - 01.09.2013, 21:08

Forum Jump:


Users browsing this thread: 2 Guest(s)