/userimkit +REP
#1

How I can make cmd /userimkit like that? http://prntscr.com/6fw9jb ShowModelSelectionMenu Wheels

CMD CODES:
Code:
CMD:userimkit(playerid, params[])
{
	if(PlayerInfo[playerid][pRimMod] == 0)
	    return SendClientMessageEx(playerid, COLOR_GREY, "You don't have any rim modification kits.");

    if(!IsPlayerInAnyVehicle(playerid))
 		return SendClientMessageEx(playerid, COLOR_GREY, "You aren't in a vehicle.");


    if(InvalidModCheck(GetVehicleModel(GetPlayerVehicleID(playerid)), 1025))
	{
 		for(new d = 0 ; d < MAX_PLAYERVEHICLES; d++)
		{
			if(IsPlayerInVehicle(playerid, PlayerVehicleInfo[playerid][d][pvId]))
			{
				ShowPlayerDialog(playerid, DIALOG_RIMMOD, DIALOG_STYLE_LIST, "Rim Modification Kit", "Offroad\nShadow\nMega\nRimshine\nWires\nClassic\nTwist\nCutter\nSwitch\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess", "Select", "Exit");
				return 1;
			}
		}
		SendClientMessageEx(playerid, COLOR_GREY, "You need to be inside a vehicle that you own.");
		return 1;
	}
	else
	{
	    SendClientMessageEx(playerid, COLOR_GREY, "This vehicle can't be modded.");
	}

	return 1;
}
Reply
#2

https://sampwiki.blast.hk/wiki/TextDrawSetPreviewModel
Reply
#3

Dude What this? I need the codes for /userimkit and ShowModelSelectionMenu Wheels
Reply
#4

This is scripting help, if you want finished codes https://sampforum.blast.hk/showthread.php?tid=447813 is the right place to post.

Anyways, what I was trying to imply, was that you need to use TextDraws first, then, to show a model such as a wheel, you then use the function I linked to above.
Reply
#5

Contact me in private, give me your skype .. I will help you.
Reply
#6

Quote:
Originally Posted by Sn00Py
View Post
Contact me in private, give me your skype .. I will help you.
skype: rojeh.najjar1
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)