zcmd?
#2

PHP код:
CMD:windows(playeridparams[])
{
    if(
IsPlayerConnected(playerid))
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            {
                
SendClientMessage(playeridCOLOR_GREY" This vehicle doesn't have the window to roll");
                return 
1;
            }
            if(
VehicleWindows[GetPlayerVehicleID(playerid)] == 0)
            {
                
VehicleWindows[GetPlayerVehicleID(playerid)] = 1;
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
format(stringsizeof(string), "* %s rolls down the window."sendername);
                
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 
1;
            }
            else if(
VehicleWindows[GetPlayerVehicleID(playerid)] == 1)
            {
                
VehicleWindows[GetPlayerVehicleID(playerid)] = 0;
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
format(stringsizeof(string), "* %s rolls up the window."sendername);
                
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 the vehicle to use this function !");
            return 
1;
        }
    }
    return 
1;
}

CMD:w(playeridparams[]) { return  cmd_windows(playeridparams); } 
Reply


Messages In This Thread
zcmd? - by alexanderjb918 - 09.06.2015, 08:14
Re: zcmd? - by J0sh... - 09.06.2015, 08:20
Re: zcmd? - by alexanderjb918 - 09.06.2015, 08:28
Re: zcmd? - by dominik523 - 09.06.2015, 08:34
Re: zcmd? - by alexanderjb918 - 09.06.2015, 08:36
Re: zcmd? - by dominik523 - 09.06.2015, 08:39
Re: zcmd? - by alexanderjb918 - 09.06.2015, 08:40
Re: zcmd? - by J0sh... - 09.06.2015, 08:43
Re: zcmd? - by XBrianX - 09.06.2015, 08:44
Re: zcmd? - by dominik523 - 09.06.2015, 08:46

Forum Jump:


Users browsing this thread: 5 Guest(s)