SA-MP Forums Archive
Vehicle Windows - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Vehicle Windows (/showthread.php?tid=604081)



Vehicle Windows - JaKe Elite - 31.03.2016

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);




Re: Vehicle Windows - JaKe Elite - 31.03.2016

Bump 4char