Pawno Crashes.
#6

Try this:

PHP код:
CMD:windows(playeridparams[])
{
    if(
IsPlayerConnected(playerid))
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridCOLOR_GREY" This vehicle doesnt come with a window.");
            return 
1;
        }
        if(
VehicleWindows[GetPlayerVehicleID(playerid)] == 0)
        {
        
VehicleWindows[GetPlayerVehicleID(playerid)] = 1;
        
format(stringsizeof(string), "* %s rolls down the window."GetPlayerNameEx(playerid));
        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
          return 
1;
        }
        else if(
VehicleWindows[GetPlayerVehicleID(playerid)] == 1)
        {
        
VehicleWindows[GetPlayerVehicleID(playerid)] = 0;
        
format(stringsizeof(string), "* %s rolls up the window."GetPlayerNameEx(playerid));
        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        return 
1;
        }
        return 
1;
    }
    else
    {
        
SendClientMessage(playeridCOLOR_GREY"  You need to be in vehicle !");
        return 
1;
        }
    }
    return 
1;

PHP код:
public OnPlayerText(playeridtext[])
{          
new 
str[128];
 if(
IsPlayerInAnyVehicle(playerid))
    {
        if(
VehicleWindows[playerid] == 0)
        {
            
format(strsizeof(str), "[Windows Open]: %s"text);
            
SendClientMessage(playeridCOLORstr); 
        }
        else if(
VehicleWindows[playerid] == 1)
        {
            
format(strsizeof(str), "[Windows Shout]: %s"text);
            
SendClientMessage(playeridCOLORstr); 
        }
    }
    return 
1;

Reply


Messages In This Thread
Pawno Crashes. - by Desi_Dude - 14.11.2012, 06:10
Re: Pawno Crashes. - by Plovix - 14.11.2012, 06:16
Re: Pawno Crashes. - by Desi_Dude - 14.11.2012, 06:20
Re: Pawno Crashes. - by Plovix - 14.11.2012, 06:22
Re: Pawno Crashes. - by Desi_Dude - 14.11.2012, 06:31
Re: Pawno Crashes. - by Plovix - 14.11.2012, 06:41
Re: Pawno Crashes. - by Desi_Dude - 14.11.2012, 06:45
Re: Pawno Crashes. - by Kreyg - 14.11.2012, 07:07
Re: Pawno Crashes. - by Desi_Dude - 14.11.2012, 07:47
Re: Pawno Crashes. - by Konstantinos - 14.11.2012, 09:00

Forum Jump:


Users browsing this thread: 1 Guest(s)