/fixveh ZCMD Command [rep +] - 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: /fixveh ZCMD Command [rep +] (
/showthread.php?tid=334925)
/fixveh ZCMD Command [rep +] -
SiEx - 16.04.2012
Can somebody give me a /fixveh command just for admins??
Thanks
Re: /fixveh ZCMD Command [rep +] -
DarkB0y - 16.04.2012
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;
}
Re: /fixveh ZCMD Command [rep +] -
SiEx - 16.04.2012
Thanks but i need it in ZCMD

anyway REP +
Re: /fixveh ZCMD Command [rep +] -
[MG]Dimi - 16.04.2012
pawn Код:
CMD:fix(playerid,params[])
{
if(!IsPLayerAdmin(playerid) || !IsPlayerInAnyVehicle(playerid)) return 1;
RepairVehicle(GetPlayerVehicleID(playerid));
return SendClientMessage(playerid,-1,"Vehicle Fixed!");
}
Re: /fixveh ZCMD Command [rep +] -
SiEx - 16.04.2012
It Doesnt work :/ you still getin you rep+ because trying to help me
Re: /fixveh ZCMD Command [rep +] -
[MG]Dimi - 16.04.2012
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?
Re: /fixveh ZCMD Command [rep +] -
SiEx - 16.04.2012
Thanks Brate

yes i wasnt logged in as RCON Admin

but how to make it for Admin lvl 1 ??
Re: /fixveh ZCMD Command [rep +] -
aRoach - 16.04.2012
Give us your Admin Variable...
Re: /fixveh ZCMD Command [rep +] -
Burn_ - 16.04.2012
Try:
if(PlayerInfo[playerid][pAdmin] >= 1)
I don't known your variables...