/fixveh ZCMD Command [rep +]
#1

Can somebody give me a /fixveh command just for admins??
Thanks
Reply
#2

pawn Код:
public AutoFix(){
    new i;
    for(i=0;i<=MAX_PLAYERS;i++){
        if(AutoFixBool[i] && IsPlayerInAnyVehicle(i)){
            SetVehicleHealth(GetPlayerVehicleID(i),HealthInit[i]);
        }
    }
}
this no need of /fix cmd

and if u dont want here fix cmd

pawn Код:
if (strcmp("/fix", cmdtext, true, 10) == 0)
    {
       new vehicleid = GetPlayerVehicleID(playerid);
       if(IsPlayerInVehicle(playerid, vehicleid))
       {
            SetVehicleHealth(vehicleid,1000.0);
            RepairVehicle(GetPlayerVehicleID(playerid));
            PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
       }
       return 1;
    }
Reply
#3

Thanks but i need it in ZCMD anyway REP +
Reply
#4

pawn Код:
CMD:fix(playerid,params[])
{
    if(!IsPLayerAdmin(playerid) || !IsPlayerInAnyVehicle(playerid)) return 1;
    RepairVehicle(GetPlayerVehicleID(playerid));
    return SendClientMessage(playerid,-1,"Vehicle Fixed!");
}
Reply
#5

It Doesnt work :/ you still getin you rep+ because trying to help me
Reply
#6

pawn Код:
if(!IsPLayerAdmin(playerid) || !IsPlayerInAnyVehicle(playerid)) return 1;
Into
pawn Код:
if(!IsPlayerAdmin(playerid) || !IsPlayerInAnyVehicle(playerid)) return 1;
Also you sure you logged in as RCON?
Reply
#7

Thanks Brate yes i wasnt logged in as RCON Admin but how to make it for Admin lvl 1 ??
Reply
#8

Give us your Admin Variable...
Reply
#9

Try:

if(PlayerInfo[playerid][pAdmin] >= 1)


I don't known your variables...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)