Admin script help
#1

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.
Reply
#2

bump, please someone help me :/
Reply
#3

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

Thanks! Helped me alot!
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)