Command for a specific name
#5

how can i make this command for a specified name instead of level?

pawn Код:
CMD:fix(playerid,params[])
{
    #pragma unused params
    if(PlayerInfo[playerid][Level] >= 1) {
        if (IsPlayerInAnyVehicle(playerid)) {
            RepairVehicle(GetPlayerVehicleID(playerid));
            SetVehicleHealth(GetPlayerVehicleID(playerid),1250.0);
            return SendClientMessage(playerid,blue,"Vehicle Fixed");
        } else return SendClientMessage(playerid,red,"Error: You are not in a vehicle");
    } else return SendClientMessage(playerid,red,"ERROR: You need to be level 1 to use this command");
}
Reply


Messages In This Thread
Command for a specific name - by Bondage - 26.12.2015, 19:22
Re: Command for a specific name - by xXRevolverXx - 26.12.2015, 19:26
Re: Command for a specific name - by SaltySandy - 26.12.2015, 19:26
Re: Command for a specific name - by lucamsx - 26.12.2015, 20:04
Re: Command for a specific name - by Bondage - 29.12.2015, 19:51
Re: Command for a specific name - by AndySedeyn - 29.12.2015, 19:53
Re: Command for a specific name - by Bondage - 29.12.2015, 20:02
Re: Command for a specific name - by CrazyChoco - 29.12.2015, 20:18
Re: Command for a specific name - by Tamy - 29.12.2015, 20:25
Re: Command for a specific name - by Bondage - 30.12.2015, 02:18

Forum Jump:


Users browsing this thread: 1 Guest(s)