Vehicle Windows
#1

I am working on a Window System for my roleplay server.
I was having an issue, When one of the windows are up it works fine (like it suppose to do).
When all of the windows are closed, I tried sending a chat but it won't send. I am pretty sure it has something to do with IsPlayerInVehicle but I don't know what to do with it nor what code to replace on it.

Any help would be appreciated.

PHP код:
new driverpassengerleftright2;
if(
IsPlayerInAnyVehicle(playerid))
{
    
GetVehicleParamsCarWindows(GetPlayerVehicleID(playerid), driverpassengerleftright2);
    if(
driver == || passenger == || left == || right2 == 0)
    {
        
format(stringsizeof(string), "%s says: %s"sendernametext);
        
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
        
SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
    }
    else if(
driver == && passenger == && left == && right2 == 1)
    {
        
format(stringsizeof(string), "(Vehicle) %s says: %s"sendernametext);
        foreach(new 
Player)
        {
            if(
IsPlayerInVehicle(iGetPlayerVehicleID(playerid)))
            {
                
SendClientMessageEx(i, -1string);
            }
        }
        
format(stringsizeof(string), "(mumble) %s"text);
        
SetPlayerChatBubble(playerid,string,COLOR_WHITE,20.0,5000);
    }
}
else
{
    
format(stringsizeof(string), "%s says: %s"sendernametext);
    
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    
SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);

Reply
#2

Bump 4char
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)