SA-MP Forums Archive
Command Help - 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: Command Help (/showthread.php?tid=504178)



Command Help - JordanSmith - 02.04.2014

Does anyone have /setcarhp Command? (Sets Vehicle Health)


Thanks!

__________________
Hostname: New Street's Life Roleplay [Refunding GVIP]
IP/Port: 91.121.237.252:7847
Players: 1/25
Game Mode: NSL:RP v2.6
Map: LS / LV
Server Version: 0.3z
Lagcomp: On
Website: Coming Soon!


Re: Command Help - Bingo - 02.04.2014

Код:
if (strcmp("/setcarhp", cmdtext, true, 10) == 0)
{
    new vehicleid = GetPlayerVehicleID(playerid);

    SetVehicleHealth(vehicleid, 99999);
    SendClientMessage(playerid,1, "Your vehicle has been Destroyed.");
    return 1;
}
This is for ourself, And if you are using command processor say its name? I will make one.


Re: Command Help - MBilal - 02.04.2014

PHP код:
CMD:setcarhp(playeridparams[])
{
    new 
HP;
    if(
sscanf(params"d"HP)) return SendClientMessage(playeridCOLOR_ORANGE"USAGE: /HP [value 1 - 100]");
    new 
vehicleid GetPlayerVehicleID(playerid);
    
SetVehicleHealth(vehicleidHP);
    
SendClientMessage(playeridCOLOUR_ORANGE"The vehicles engine has been fully repaired.");
    return 
1;

here is your cmd not tested yet


Re: Command Help - JordanSmith - 02.04.2014

Thanks guys!

__________________
Hostname: New Street's Life Roleplay [Refunding GVIP]
IP/Port: 91.121.237.252:7847
Players: 1/25
Game Mode: NSL:RP v2.6
Map: LS / LV
Server Version: 0.3z
Lagcomp: On
Website: Coming Soon!