25.02.2010, 13:46
It dosent work like that,
In the future check the wiki = https://sampwiki.blast.hk/wiki/RepairVehicle
In the future check the wiki = https://sampwiki.blast.hk/wiki/RepairVehicle
pawn Код:
if(strcmp(cmd, "/fixveh", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
RepairVehicle(GetPlayerVehicleID(playerid));
}
return 1;
}
}
return 1;
}