help with "key-Y"
#5

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) //if(IsPlayerInAnyVehicle(playerid))
{
    if(PRESSED(KEY_YES))
    {
        if(IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid,0xFFFFFFFFF,"{FFFF00}ERROR{FFFFFF}: You're in vehicle !");
        else
        {
            if(busy[playerid] == 1) return SendClientMessage(playerid,0xAA3333AA,"[ERROR]You Cant Use Commands In DM Places, To Leave DM, Use [/Leave]");
            new allvehicles[] = "1\t{FF0000}Airplanes\n2\t{0000FF}Helicopters\n3\t{00FF00}Bikes\n4\t{FFFF00}Convertibles\n5\t{FF00FF}Industrial\n6\t{E76D00}Lowriders\n7\t{FF0000}OffRoad\n8\t{00FF00}Public Service Vehicles\n9\t{FF00FF}Saloons\n10\t{FF0000}Sport Vehicles\n11\t{FF0000}Station Wagons\n12\t{0000FF}Boats\n13\t{FFFF00}Unique Vehicles\n14\t{FF0000}RC Vehicles\n15\t{E76D00}Trailers";
            ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST," Vehicles: || Scroll Down for more",allvehicles,"Select","Cancel");
            return 1;
        }
    }
    return 1;
}
Reply


Messages In This Thread
help with "key-Y" - by Strike97 - 27.12.2013, 23:16
Re: help with "key-Y" - by Danialdano - 27.12.2013, 23:19
Re: help with "key-Y" - by Matess - 27.12.2013, 23:20
Re: help with "key-Y" - by Strike97 - 27.12.2013, 23:22
Re: help with "key-Y" - by xVIP3Rx - 27.12.2013, 23:26
Re: help with "key-Y" - by Strike97 - 27.12.2013, 23:27

Forum Jump:


Users browsing this thread: 1 Guest(s)