Easy cmd help
#5

pawn Код:
if (strcmp("/fix", cmdtext, true, 10) == 0)
{
    if(Player[playerid][pAdmin] >= 1)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            RepairVehicle(GetPlayerVehicleID(playerid));
        }
        else
        {
            SendClientMessage(playerid, COLOR_YELLOW,"You are not driving any car");
        }
}
    else
    {
         SendClientMessage(playerid,COLOR_RED,"You are not allowed to use this command");
    }
    return 1;
}
Reply


Messages In This Thread
Easy cmd help - by Gogeta101 - 22.08.2014, 21:07
Re: Easy cmd help - by Thogy - 22.08.2014, 21:14
Re: Easy cmd help - by AchievementMaster360 - 22.08.2014, 21:20
Re: Easy cmd help - by Gogeta101 - 22.08.2014, 21:21
Re: Easy cmd help - by nmader - 22.08.2014, 21:24

Forum Jump:


Users browsing this thread: 1 Guest(s)