der Befehl:
if (strcmp(cmdtext, "/light", true) == 0 || strcmp(cmdtext, "/lights", true) == 0 || strcmp(cmdtext, "/l", true) == 0)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if (IsPlayerInAnyVehicle(playerid))
{
new vid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vid,engine,light,alarm,doors,bonnet,boot,objective);
if(light == VEHICLE_PARAMS_OFF || light == VEHICLE_PARAMS_UNSET)
{
SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
SendClientMessage(playerid,Orange,"You´ve turned on the light.");
}
else
{
SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
SendClientMessage(playerid,Orange,"You´ve turned off the light.");
}
}
}
return 1;
}
ich habe schon drin, dass was im Chat steht, aber ich möchte auch einen TXTDRAW
mir ist auch ein Problem aufgefallen: das licht leuchtet nur abends/nachts, kann man das fixen?
noch 2 Probleme (nicht mit dem licht):
seitdem ich das M_Bot.in drin hab, hab ich diese 8 Warnings:
C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2644) : warning 203: symbol is never used: "BadWords"
C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2644) : warning 203: symbol is never used: "EnableM_Bot"
C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2644) : warning 203: symbol is never used: "M_OnPlayerCommandText"
C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2644) : warning 203: symbol is never used: "M_OnPlayerConnect"
C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2644) : warning 203: symbol is never used: "M_OnPlayerDeath"
C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2644) : warning 203: symbol is never used: "M_OnPlayerSpawn"
C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2644) : warning 203: symbol is never used: "M_OnPlayerStateChange"
C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2644) : warning 203: symbol is never used: "M_OnPlayerUpdate"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
8 Warnings.
UND
Bei /gmx wird das Adminlevel zurückgesetzt?!?
LG
edit: die beiden anderen Probleme geaddet