Nu te inregistra daca esti idiot sau agramat!
AlphaCS.RO[ORIGINAL GAMING]
Thanks:
0
Likes:
0
-
[Tutorial] Simple repair cmd.
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules