How to?
#1

I'm going to make a weapon-giver system, but idk how to check if that player is having a melee like knife.
Reply
#2

https://sampwiki.blast.hk/wiki/GetPlayerWeaponData
Reply
#3

Quote:
Originally Posted by Don Correlli
Ok, know that function but I don't know how to use it.. You can give me an example, please?
Reply
#4

Quote:
Originally Posted by Razvann
You can give me an example, please?
http://forum.sa-mp.com/index.php?top...3090#msg763090
Reply
#5

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by Razvann
You can give me an example, please?
http://forum.sa-mp.com/index.php?top...3090#msg763090
pawn Код:
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;
}
Here's what I've made, I haven't understood very good, is it good?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)