public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext,"engineoff", true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillVehicleEngine(vehicleid); // Engine off
SendClientMessage(playerid,0xFFFFFFFF,"Car engine turned off,re-enter the vehicle to restart it.");
return 1;
}
if (strcmp(cmdtext,"lightson",true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleLights(vehicleid,1); // Lights on
SendClientMessage(playerid,0xFFFFFFFF,"Car headlights turned on");
return 1;
}
if (strcmp(cmdtext,"lightsoff",true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleLights(vehicleid,0); // Lights off
SendClientMessage(playerid,0xFFFFFFFF,"Car headlights turned off");
return 1;
}
if (strcmp(cmdtext,"wakeup",true)==0)
{
TogglePlayerControllable(playerid,1);
SendClientMessage(playerid,0xFFFFFFFF,"You are now awake!");
return 1;
}
return 1;
}
Guess what was the problem? You typed " " (space) before and after each word in commands, like " lightson " instead of "lightson". Also, I'd recommend that you use more checks, and, tbh, I don't find /c wakeup useful.