[Help] Car Commands
#1

Hello, I wonder if you can help me. I created a few car commands /Autofix on/off and /Nos
But I need some more help.

With my autofix I want to know how to make it say: 'AutoFix Is already turned on!' when you do it again and same sort of thing with /autofix off.
Here is that code
pawn Код:
if (strcmp("/autofix on", cmdtext, true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid) && PLAYER_STATE_DRIVER)
        {
            cartimer[playerid]=SetTimerEx("CarHealth",2500,true,"i",playerid);
        SendClientMessage(playerid, COLOR_GREEN,"SERVER:Use /autofix off to disable or leave your car");
        SendClientMessage(playerid, COLOR_GREEN,"USAGE:Repair your car automatically");
        }
        else
        {
           SendClientMessage(playerid, COLOR_GREEN,"You are not in a Vehicle");
        }
        return 1;
    }

    if (strcmp("/autofix off", cmdtext, true) == 0)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
            KillTimer(cartimer[playerid]);
            SendClientMessage(playerid, COLOR_GREEN,"Autofix is now off");
        }
        else
        {
          SendClientMessage(playerid, COLOR_GREEN,"/autofix isnt connected");
        }
        return 1;
    }
And With my nos I made I want to make an autnos aaswell (/Anos)
I searched and I foungd This: http://forum.sa-mp.com/index.php?topic=54579.0

but i dont know how to make something like that as a command.

Anyone that help me I say thank you to, byez
Reply


Messages In This Thread
[Help] Car Commands - by ForceFive - 05.04.2009, 20:25
Re: [Help] Car Commands - by ForceFive - 05.04.2009, 22:13
Re: [Help] Car Commands - by ICECOLDKILLAK8 - 05.04.2009, 22:17
Re: [Help] Car Commands - by Kostas' - 17.09.2011, 13:34
Re: [Help] Car Commands - by wouter0100 - 17.09.2011, 13:35
Re: [Help] Car Commands - by Kostas' - 18.09.2011, 09:41

Forum Jump:


Users browsing this thread: 3 Guest(s)