12.11.2010, 16:55
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]
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;
}
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;
}