18.04.2010, 11:43
I'm going to make a weapon-giver system, but idk how to check if that player is having a melee like knife.
Originally Posted by Don Correlli
|
Originally Posted by Razvann
You can give me an example, please?
|
Originally Posted by Don Correlli
Quote:
|
if(strcmp(x_nra,"melee1",true) == 0)
{
new weapons[13][2];
for(new i = 0; i < 13; i++)
{
GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
}
if(weapons[1][0] == 2)
{
GivePlayerWeapon(giveplayerid, 2, weapons[i][1]);
RemovePlayerWeapon(playerid, 2);
}
return 1;
}