05.04.2009, 20:25
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
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
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;
}
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