need repair command! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: need repair command! (
/showthread.php?tid=285495)
need repair command! -
niels44 - 24.09.2011
hey guys can someone make a /repaircar command for me? i have a command /repair in my gm now but that one is only for admins and i cant find it in my gm so can someone make a command for me that repairs a vehicle i use this sort of cmds in my server:
if (strcmp(cmdtext, "/lvisland", true) == 0)
{
SetPlayerPos(playerid, 2717.4958,629.5791,10.8233);
GameTextForPlayer(playerid,"las venturas island",4000,6);
return 1;
}
so pls dont make any cmds which begins with:
cmd:...............
can anyone pls make a cmd for me?
i would really appreciate that and if u want to see my server the IP is: 217.18.70.146:7777
niels
Re: need repair command! -
dice7 - 24.09.2011
pawn Код:
if (!strcmp("/repair", cmdtext))
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!");
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been successfully repaired!");
return 1;
}
Re: need repair command! -
niels44 - 24.09.2011
thnx bro i added it in my server and gave u some rep points
Re: need repair command! -
niels44 - 24.09.2011
btw could u give me some rep points too so i can advertise for my server? i need 2 rep points for that