Quote:
Originally Posted by Karlip
Quote:
Originally Posted by radi
wrong section but here
pawn Код:
if(strcmp(cmd, "/vr", true) ==0 || strcmp(cmd, "/arepair", true) ==0) { if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 101) { if(IsPlayerInAnyVehicle(playerid)) { RepairVehicle(GetPlayerVehicleID(playerid)); SendClientMessage(playerid, COLOR_GREY, "* Vehicle fixed!"); } } else { SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use this command."); } return 1; }
|
Lol, copy&paste is easy yeah.
pawn Код:
if(strcmp(cmd, "/vr", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { RepairVehicle(GetPlayerVehicleID(playerid)); } return 1; }
|
RepairVehicle callback must be added, I guess. Or is it already on SA-MP?
EDIT : Sorry, my mistake, it's already on SA-MP xDDD