How to make this? - 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: How to make this? (
/showthread.php?tid=189627)
How to make this? -
ZamaXor - 12.11.2010
Okay i need a code so if player has got 900+ kills he can use the rocketlauncher. If he hasn't got 900+ kills = ban. How to make it. I'm using PlayerInfo[playerid][Kills]
Re: How to make this? -
[MWR]Blood - 12.11.2010
pawn Код:
if(strcmp(cmdtext,"/rocket",true)==0)
{
if(PlayerInfo[playerid][Kills] >= 900)
{
GivePlayerWeapon(playerid,35,10);
}
else
{
SendClientMessage(playerid,red,"* Sorry, you cannot use this command, you need 900 kills!");
}
return 1;
}
Re: How to make this? -
ZamaXor - 12.11.2010
Quote:
Originally Posted by ikarus
pawn Код:
if(strcmp(cmdtext,"/rocket",true)==0) { if(PlayerInfo[playerid][Kills] >= 900) { GivePlayerWeapon(playerid,35,10); } else { SendClientMessage(playerid,red,"* Sorry, you cannot use this command, you need 900 kills!"); } return 1; }
|
Well not something like this.
Re: How to make this? -
Moglizorz. - 12.11.2010
Quote:
Originally Posted by ZamaXor
Well not something like this.
|
.. that's what you asked for? He gave you it?
Re: How to make this? -
ZamaXor - 12.11.2010
Quote:
Originally Posted by Moglizorz.
.. that's what you asked for? He gave you it?
|
Nope he didn't.
I want to check if someone haven't 900+ = ban
Re: How to make this? -
The_Moddler - 12.11.2010
pawn Код:
if(!strcmp(cmdtext, "/rocket", true))
{
if(PlayerInfo[playerid][Kills] > 900)
{
GivePlayerWeapon(playerid,35,10);
}
else
{
Ban(playerid);
SendClientMessage(playerid, red,"* Server owner banned you because he is a retard and he copy and pastes everything.");
}
return 1;
}