Command Help
#1

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!
Reply
#2

Код:
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.
Reply
#3

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
Reply
#4

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)