How do I prevent this (Command issue)
#3

You can use this one .I tested and it works :
Код:
CMD:spawncar(playerid, params[])
{
	new currentvehicle;
	currentvehicle = GetPlayerVehicleID(playerid);
	
	if(IsPlayerInAnyVehicle(playerid))
	{
	
		DestroyVehicle(currentvehicle);
                ShowPlayerDialog(playerid,12,DIALOG_STYLE_LIST,""COL_RED"Cars:",""COL_GREEN"Infernus\n"COL_GREEN"Elegy\n"COL_GREEN"Turismo\n"COL_GREEN"NRG\n"COL_GREEN"Comet\n"COL_GREEN"Huntley\n"COL_GREEN"Club\n","Select","Cancel")
	}
	else
	{
                ShowPlayerDialog(playerid,12,DIALOG_STYLE_LIST,""COL_RED"Cars:",""COL_GREEN"Infernus\n"COL_GREEN"Elegy\n"COL_GREEN"Turismo\n"COL_GREEN"NRG\n"COL_GREEN"Comet\n"COL_GREEN"Huntley\n"COL_GREEN"Club\n","Select","Cancel");
        }
        return 1;
}
Reply


Messages In This Thread
How do I prevent this (Command issue) - by K9IsGodly - 08.01.2014, 04:36
Re: How do I prevent this (Command issue) - by offon - 08.01.2014, 05:30
Re: How do I prevent this (Command issue) - by amirab - 08.01.2014, 05:39

Forum Jump:


Users browsing this thread: 1 Guest(s)