16.02.2010, 19:36
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
Have been changed to
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})
pawn Код:
if (PlayerInfo[playerid][pWarn] == {warn amount})