/userimkit +REP - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /userimkit +REP (
/showthread.php?tid=567281)
/userimkit +REP -
Trevor Gin - 12.03.2015
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;
}
Re: /userimkit +REP -
oliverrud - 12.03.2015
https://sampwiki.blast.hk/wiki/TextDrawSetPreviewModel
Re: /userimkit +REP -
Trevor Gin - 12.03.2015
Dude What this? I need the codes for /userimkit and ShowModelSelectionMenu Wheels
Re: /userimkit +REP -
oliverrud - 12.03.2015
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.
Re: /userimkit +REP -
Sn00Py - 12.03.2015
Contact me in private, give me your skype .. I will help you.
Re: /userimkit +REP -
Trevor Gin - 12.03.2015
Quote:
Originally Posted by Sn00Py
Contact me in private, give me your skype .. I will help you.
|
skype: rojeh.najjar1