How to make this?
#1

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]
Reply
#2

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;
}
Reply
#3

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.
Reply
#4

Quote:
Originally Posted by ZamaXor
Посмотреть сообщение
Well not something like this.
.. that's what you asked for? He gave you it?
Reply
#5

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
Reply
#6

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)