02.01.2011, 12:41
Have you tested this?
pawn Код:
if (strcmp("/addlaser", cmdtext, true, 10) == 0)
{
if(GetPlayerWeapon(playerid) == 34)
{
SetPlayerAttachedObject(playerid,3 , 18643, 6, 0.158249, 0.010233, 0.128052, 6.868255, 351.962524, 356.884216);
} else return SendClientMessage(playerid, 0x660066AA, "You cannot add a laser to this weapon!");
}