07.12.2012, 11:41
Hey, I added Neon System on my GM, and I added command /neon for turn on or turn off the neon, it's worked when I outside the vehicle, but, when I Inside the vehicle, it's say command not found.
This is the command:
Please Help
This is the command:
pawn Код:
CMD:neon(playerid, params[])
{
new vehid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(PlayerVehicleInfo[playerid][vehid][pvNeon] >= 1)
{
if(Neon[vehid] == 1)
{
UnloadNeon(playerid, vehid);
SendClientMessageEx(playerid, COLOR_GREY, "Neon turned off.");
Neon[vehid] = 0;
}
else
{
LoadNeon(playerid, vehid);
SendClientMessageEx(playerid, COLOR_GREY, "Neon turned on.");
Neon[vehid] = 1;
}
}
else SendClientMessageEx(playerid, COLOR_GREY, "This vehicle doesn't have neon!");
}
else SendClientMessageEx(playerid, COLOR_GREY, "You are not the driver!");
}
else SendClientMessageEx(playerid, COLOR_GREY, "You are not inside Vehicle!");
return 1;
}