04.10.2009, 22:09
Код:
if(strcmp(cmd, "/wi", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { if(IsABike(GetPlayerVehicleID(playerid))) { SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[ERROR:] Bikes don't have windows."); return 1; } if(CarWindowStatus[GetPlayerVehicleID(playerid)] == 1) { if(PlayerInfo[playerid][pSex] == 1) { PlayerActionMessage(playerid,15.0,"has just rolled the windows down in his vehicle."); ShowNameTags(true); } else { PlayerActionMessage(playerid,15.0,"has just rolled the windows down in her vehicle."); ShowNameTags(true); } CarWindowStatus[GetPlayerVehicleID(playerid)] = 0; } else if(CarWindowStatus[GetPlayerVehicleID(playerid)] == 0) { if(PlayerInfo[playerid][pSex] == 1) { PlayerActionMessage(playerid,15.0,"has just rolled up the windows in his vehicle."); ShowNameTags(false); } else { PlayerActionMessage(playerid,15.0,"has just rolled up the windows in her vehicle."); ShowNameTags(false); } CarWindowStatus[GetPlayerVehicleID(playerid)] = 1; } } else { SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[ERROR:] Your not in a vehicle!"); } return 1; }
Код:
ShowNameTags(true);