SA-MP Forums Archive
Admin script help - 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: Admin script help (/showthread.php?tid=244746)



Admin script help - Markx - 28.03.2011

Can someone please help me, questiones:

1. Save when a player is banned(pBanned), to his player file, then if hes banned and connects again(ip changed) it will say "This account is banned" and kick him.

2. How to save if a player is Muted(pMuted) or/and Jailed (pJailed) and load it when he connects again and mute/jail him again.

3. How to make like /respawnallcars, it will respawn all cars, and a /destroycar (removes the car, and spawn it again)

Please. i will PM you my code if you wanna help me, i dont wanna post it here.


Re: Admin script help - Markx - 28.03.2011

bump, please someone help me :/


Re: Admin script help - Max_Coldheart - 28.03.2011

Just an example:
pawn Код:
OnPlayerConnect
{
     if(PlayerInfo[playerid] [pBanned] == 1)
     {
          SendClientMessage(playerid, COLOR, "You are banned.");
          Kick(playerid);
      }
      return 1;
}
EDIT: Sorry for identation


Re: Admin script help - Markx - 28.03.2011

Thanks! Helped me alot!


Re: Admin script help - -Rebel Son- - 28.03.2011

Yeah what he said, Just Dont set it to 0 on disconnect

P>S; not to be off topic, but where did u make your avatar XD