How to ? - 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: How to ? (
/showthread.php?tid=141906)
How to ? -
AlbanianGuy - 15.04.2010
how to make a thingy to save the skin automaticly .. i have made one but i get errors .. cant work with it can anyone help me ?
Код:
onplayerdisconnect
if(PlayerInfo[playerid][Registered] == 1)
(
GetPlayerSkin(playerid);// dont know if this is right
dUserSetINT(PlayerName(playerid)).("SavedSkin",skinid);//now i dont know how to save the skin id
}
and onplayerSpawn
if(PlayerInfo[playerid][Logged] == 1)
{
SetPlayerSkin(dUserSetINT(playerid,PlayerName(playerid)).("SavedSkin",skinid));
}
Re: How to ? -
pagie1111 - 15.04.2010
pawn Код:
onplayerdisconnect
if(PlayerInfo[playerid][Registered] == 1)
{
new skinid = GetPlayerSkin(playerid);
dUserSetINT(PlayerName2(playerid)).("SavedSkin",skinid);//now i dont know how to save the skin id
}
and onplayerSpawn
if(PlayerInfo[playerid][Registered] == 1)
{
?
Re: How to ? -
AlbanianGuy - 15.04.2010
Quote:
Originally Posted by {Awaran};
pawn Код:
onplayerdisconnect if(PlayerInfo[playerid][Registered] == 1) { new skinid = GetPlayerSkin(playerid); dUserSetINT(PlayerName2(playerid)).("SavedSkin",skinid);//now i dont know how to save the skin id }
and onplayerSpawn if(PlayerInfo[playerid][Registered] == 1) {
?
|
now its fixed