warn command help
#3

Ok, I got it to where it saves to player account. I have another question tho. it's set up to where an admin warns someone the admin give a reason before warning. I'm curious of how i would go about saving the reason to player account

These are under my Playerinfo [pinfo] that i'm gonna use to save the warns

pWreason1,
pWreason2,
pWreason3,

How would i set the /warn command to save the warning to those in player account.

So for example a admin types /getwarning and it shows how many warns they have then below that it gives the reason of the warn so an admin type

/warn [playerid] Deathmatching and for warning 2 /warn [playerid] Carkilling and for 3rd warn /warn [playerid] Flaming Admin and on the fourth they get autobanned

then admin types /getwarnings and it shows

Playername has 1/3 warns
Warning 1: Deathmatching

then when thye have 2 warning

Playername Has 2/3 warns
Warning 1: Deatmatching
Warning 2: Carkilling

Then if they have 3/3 and admin types /getwarning again
Warning 1eathmatching
Warning 2:Carkilling
Warning 3:Flaming Admin

The command above, All the
pawn Код:
if(Warning[giveplayerid] == {warn amount})
Have been changed to
pawn Код:
if (PlayerInfo[playerid][pWarn] == {warn amount})
Reply


Messages In This Thread
warn command help - by ihatetn931 - 13.02.2010, 05:30
Re: warn command help - by ihatetn931 - 13.02.2010, 16:06
Re: warn command help - by ihatetn931 - 16.02.2010, 19:36
Re: warn command help - by ihatetn931 - 17.02.2010, 20:47
Re: warn command help - by GAMER_PS2 - 20.10.2011, 11:14

Forum Jump:


Users browsing this thread: 2 Guest(s)