Player info 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)
+--- Thread: Player info save (
/showthread.php?tid=533827)
Player info save -
brandypol - 26.08.2014
Well, when I connect in my server the only thing that saves is the money. My question is simple :
What do I have to script on my gamemode script to make the player's progress be saved (location, skin, weapon and ammo...) ?
And I have a second question to ask and I wanna know if someone can tell me how I can put restrictions on a skin, I mean I wanted some skin ids to be available only for admins and owner
Re: Player info save -
MikeEd - 26.08.2014
Add more variables to your enum and save them when the player disconnects
Re: Player info save -
brandypol - 26.08.2014
Quote:
Originally Posted by MikeEd
Add more variables to your enum and save them when the player disconnects
|
How do I do that ? And is it for my first question or the second one ?
Re: Player info save -
1fret - 26.08.2014
Try this i havent tested it.
for the second question
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
if(IsAdminSkin(classid) == false)//check if the player is an admin
{
SendClientMessage(playerid,0x00FF00FF,"You're not a admin you can't use this skin");//send them a message
return 0;
}
return 1;
}
stock IsAdminSkin(skinid)
{
switch(skinid)
{
case 0,74,299: return 1;//add all the skins you want locked to admins here.
}
return 0;
}