26.06.2012, 21:45
I tried to make a check if he is in LSPD or in a vehicle but nothing... it just starting to flash..
CODE:
CODE:
Код:
if(strcmp(cmd, "/lightsflash", true) ==0 || strcmp(cmd, "/lf", true) ==0) { if ((gTeam[playerid]) == 1) { if(!IsPlayerInAnyVehicle(playerid)) { SendClientMessage(playerid, 0xFF0000FF, "You must be inside a vehicle!"); return 1; } if(PlayerInfo[playerid][pLeader] != 1 && PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pMember] != 2 && PlayerInfo[playerid][pLeader] != 2) { SendClientMessage(playerid, COLOR_GREY, " You are not a policeman/fbi!"); } new vehicleid = GetPlayerVehicleID(playerid); new panels,doors,lights,tires; GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires); Flasher[vehicleid] = 1; } return 1; }