[Help] Command
#2

pawn Код:
if (strcmp("/light", cmdtext, true, 10) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            if (IsNotAEngineCar(newcar))
            {
            return 1;
            }
            if(GetVehicleParameters(newcar, 1) == 1)
            {
             SetVehicleLights(newcar, 0);
             GameTextForPlayer(playerid, "~w~Lights~n~~r~Off", 4000, 3);
            }
            else if(GetVehicleParameters(newcar, 1) == 0)
            {
                SetVehicleLights(newcar, 1);
                GameTextForPlayer(playerid, "~w~Lights~n~~g~On", 4000, 3);
            }
        } else return SendClientMessage(playerid,-1,"Error: you are not in a vehicle");
    }
    return 1;
}
Reply


Messages In This Thread
[FIXED] Command - by Jimbo01 - 28.01.2011, 14:33
Re: [Help] Command - by HyperZ - 28.01.2011, 14:40
Re: [Help] Command - by Jimbo01 - 28.01.2011, 14:46
Re: [Help] Command - by HyperZ - 28.01.2011, 14:47
Re: [Help] Command - by Jimbo01 - 28.01.2011, 14:48
Re: [Help] Command - by HyperZ - 28.01.2011, 14:52

Forum Jump:


Users browsing this thread: 2 Guest(s)