14.06.2017, 16:08
Hello im stuck with a problem ive tryed to fix but can't seem to fix it
im trying to put the IsVehicleWindowsDown onto the first code that i use
PHP Code:
case 0, 1:
{
if(AdminDuty[playerid] == 1)
format(string, sizeof(string), "%s says: (( %s ))", sendername, text);
else
if(PlayerInfo[playerid][pMask] == 1) { format(string, sizeof(string), "Stranger says: %s",text); }
else { format(string, sizeof(string), "%s says: %s", sendername, text); }
ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
}
PHP Code:
if(AdminDuty[playerid] == 1 && PlayerInfo[playerid][pAccent] != 25) {
format(string, sizeof(string), "%s says: (( %s )) ", sendername, text);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SetPlayerChatBubble(playerid, text, COLOR_WHITE, 20.0, 5000);
} else {
if(IsPlayerInAnyVehicle(playerid) && IsVehicleWindowsDown[vehicleid] == 1) { //Windows closed.
format(string, sizeof(string), "[Windows Closed] %s says: %s", sendername, text);
ProxDetector(3.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
} else {
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
}