19.03.2015, 09:33
I made a simple window system, when you /car windows once you'll chat there will be [Windows Shut] or [Windows Down] but this what happens. + It's working too on Bikes which is not supposed to be.
New
OnPlayerText
Pictures here!
New
Код:
new VehicleWindows[MAX_VEHICLES] = 0;
Код:
if(IsPlayerInAnyVehicle(playerid))
{
if(VehicleWindows[playerid] == 0)
{
format(string, sizeof(string), "%s says [Windows Shut]: %s", sendername, text);
ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
else if(VehicleWindows[playerid] == 1)
{
format(string, sizeof(string), "%s says [Windows Down]: %s", sendername, text);
ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
return 1;
}


