[Help] Which plugin is missing?[ REP+ ]
#4

Code:
Code:
CMD:teleports(playerid, params[])
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Stunts", "\nLvas \nBuildingjump \nBaysidestunts \nNewstunts \nBounce", "Select", "Cancle");

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == 1){
		if(response){
			switch(listitem)){
				case 0;
				{
					//Selected Item: ""
				}
				case 1;
				{
					//Selected Item: "Lvas "
				}
				case 2;
				{
					//Selected Item: "Buildingjump "
				}
				case 3;
				{
					//Selected Item: "Baysidestunts "
				}
				case 4;
				{
					//Selected Item: "Newstunts "
				}
				case 5;
				{
					//Selected Item: "Bounce"
				}
			}
		}
		else{
			//The player has pressed "Select".
			switch(listitem{
				case 0:
				{
					//Selected Item: ""
				}
				case 1:
				{
					//Selected Item: "Lvas "
				}
				case 2:
				{
					//Selected Item: "Buildingjump "
				}
				case 3:
				{
					//Selected Item: "Baysidestunts "
				}
				case 4:
				{
					//Selected Item: "Newstunts "
				}
				case 5:
				{
					//Selected Item: "Bounce"
				}
			}
		}
	}
    return 0;
}
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 6 Guest(s)