[help] Commands Not Working
#1

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/vr", true) == 1) {
        if(IsPlayerVipMember(playerid)) return SendClientMessage(playerid,red,"Only Vip's Can Repair Their Vehicles.");
        {
            if(IsPlayerInAnyVehicle(playerid)) {
                new vehicleid = GetPlayerVehicleID(playerid);
                SetVehicleHealth(vehicleid,1000.0);
                SendClientMessage(playerid,Green1, "Vehicle fixed.");
            }
            else {
                SendClientMessage(playerid,red, "You are not in a vehicle!");
            }

        }
    }
    return 1;
}
I have no errors/warnings and i see no problem with the script
but when i do /vr ingame it doesent do anything...
it DOES NOT tell me:

You are not in a vehicle!,
Vehicle fixed., or
Only Vip's Can Repair Their Vehicles.

its like i type it but the server does not respond

USING LUXADMIN FOR IsPlayerVipMember
Reply


Messages In This Thread
[help] Commands Not Working - by mastalol - 17.07.2011, 02:57
Re: [help] Commands Not Working - by PrawkC - 17.07.2011, 03:00
Re: [help] Commands Not Working - by lolumadd_ - 17.07.2011, 03:00
Re: [help] Commands Not Working - by =WoR=Varth - 17.07.2011, 03:00
Re: [help] Commands Not Working - by SergiKirov - 17.07.2011, 03:01
Re: [help] Commands Not Working - by Shockey HD - 17.07.2011, 03:01
Re: [help] Commands Not Working - by lolumadd_ - 17.07.2011, 03:04
Re: [help] Commands Not Working - by PrawkC - 17.07.2011, 03:05
Re: [help] Commands Not Working - by mastalol - 17.07.2011, 03:24

Forum Jump:


Users browsing this thread: 1 Guest(s)