07.07.2010, 03:03
Try this:
pawn Код:
if (strcmp("/ak47", cmdtext, true, 10) == 0)
{
new weap, ammo;
GetPlayerWeaponData(i, 5, weap, ammo);
if(weap == 30)
{
SendClientMessage(playerid,0xB4B5B7FF,"--------------------------------------------");
SendClientMessage(playerid,0xB4B5B7FF,"You already have an AK-47 foul.");
SendClientMessage(playerid,0xB4B5B7FF,"--------------------------------------------");
}
else
{
SendClientMessage(playerid,0xB4B5B7FF,"--------------------------------------------");
SendClientMessage(playerid,0xB4B5B7FF,"Here is you AK-47 now run off nub");
SendClientMessage(playerid,0xB4B5B7FF,"--------------------------------------------");
GivePlayerWeapon(playerid, 30,1000);
}
return 1;
}