i need a /warn command please! - 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: i need a /warn command please! (
/showthread.php?tid=137253)
i need a /warn command please! -
Ehab_Isaac101 - 28.03.2010
Please Guys, I Need a /warn Command. it " if player has been given 3 wars, the 4th will get banned. " please.
Thanks
Re: i need a /warn command please! -
Jay420 - 28.03.2010
Well, what gamemode are you using?
Re: i need a /warn command please! -
Ehab_Isaac101 - 28.03.2010
GTA-RP
Re: i need a /warn command please! -
Jay420 - 28.03.2010
Well I've never even tried it, but you could possibly save a line in the playerfile which would be something like "Warns".
The Warns would be "0" as default, and you can create a /warn command for the admins, which will set the warns.
When an admin uses the /warn cmd, it will set the players warns:
PlayerInfo[giveplayerid][pWarns] = 1+PlayerInfo[giveplayerid][pWarns];
and
somewhere.. if(PlayerInfo[playerid][pWarns] == 3)
Ban
Re: i need a /warn command please! -
spaceflame784 - 28.03.2010
Quote:
|
Originally Posted by Jay420
Well I've never even tried it, but you could possibly save a line in the playerfile which would be something like "Warns".
The Warns would be "0" as default, and you can create a /warn command for the admins, which will set the warns.
When an admin uses the /warn cmd, it will set the players warns:
PlayerInfo[giveplayerid][pWarns] = 1+PlayerInfo[giveplayerid][pWarns];
and
somewhere.. if(PlayerInfo[playerid][pWarns] == 3)
Ban
|
Jay420, can you please PM me Thanks.
Re: i need a /warn command please! -
Jay420 - 28.03.2010
Quote:
|
Originally Posted by spaceflame784
Jay420, can you please PM me Thanks.
|
That one is completely off topic. If you want help, post your thread here, on the forums and everyone will do their best to help you.