Skin Dialog Save - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Skin Dialog Save (
/showthread.php?tid=246408)
Skin Dialog Save -
NotoriousMOB - 04.04.2011
Oh hi !
i got this Skin dialog
pawn Код:
if(strcmp(cmdtext, "/changeskin", true) == 0)
{
if(!IsPlayerInRangeOfPoint(playerid, 10.0, 207.4390,-105.3136,1005.1328)) return SendClientMessage(playerid,-1,"You are not at Binco!");
ShowPlayerDialog(playerid, 5858, DIALOG_STYLE_INPUT, "Skin Change 500$", "Enter the skin id you wish to have below", "Confirm", "Cancel");
return 1;
}
pawn Код:
if(dialogid == 5858)
{
if(response)
{
new skinid, message[64];
skinid = strval(inputtext);
if(skinid < 0 || skinid > 299)
{
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Skin id may be between 0 and 299.");
}
else
{
SetPlayerSkin(playerid, skinid);
format(message, sizeof(message), "SERVER: You have changed your skin id to %d.", skinid);
SendClientMessage(playerid, 0xFFFFFFFF, message);
SafeGivePlayerMoney(playerid,-500);
}
}
return 1;
}
Simply but.. after Reconnect the skin is gone..
now my question is how do i make this Skin Save
anyone who can make a code or get me a link, would be nice thanks !
Re: Skin Dialog Save -
Hornet600 - 04.04.2011
you will have to learn how to use a database like dini mysql SQLite i prefer mysql i and i use all with it

there are alot of register script toturias with money saves and with it you can learn how to save the skin and load the skin. Hope the reply helps you
Re: Skin Dialog Save -
ElChapoGuzman - 04.04.2011
https://sampforum.blast.hk/showthread.php?tid=59832
Re: Skin Dialog Save -
NotoriousMOB - 04.04.2011
Hmm ye dude thats like a Skin Property system
all i need is a /changeskin "id" or a Dialog which i have here.
and make it save afterwards when peopel buy them.