01.09.2013, 13:02
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:
///this is becus u cant use repair command then...
Then add into next line :
Next add the
Wait bro add it in the same line...
in next line add :
///server needs repairing system u dumb bro..
in next line add:
and for the end add into next line:
Its the end... Got any warning/error message? Comment or pm it!
For now u can but /r or /repair cmd into your gamemode.
For starting add:
pawn Code:
if (!strcmp("/r", cmdtext))
{
Then add into next line :
pawn Code:
if(!IsPlayerInAnyVehicle(playerid))///server is stupid when server doesent know is player in vehicle or not.. -_-
pawn Code:
return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in the vehicle!");
in next line add :
pawn Code:
RepairVehicle(GetPlayerVehicleID(playerid));
in next line add:
pawn Code:
SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle is 1337% repaired!");
pawn Code:
return 1;