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