17.03.2018, 12:36
Hi. I want to put a custom skin to every weapon of my server
but i can't find the correct coordonates
can you help me ?
this is the coord
And i want to set it
if he has M4 in hand, SetPlayerAttachedObject
else
remove it.
but i can't find the correct coordonates
can you help me ?
this is the coord
PHP Code:
SetPlayerAttachedObject(playerid, 4,-2000, 5, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1);
if he has M4 in hand, SetPlayerAttachedObject
else
remove it.
PHP Code:
stock GetPlayerWeapon(playerid)
{
case 0: wepname = "Fists";
case 25: wepname = "Shotgun";
case 30: wepname = "AK-47";
case 31: wepname = "M4";
{
SetPlayerAttachedObject(playerid, 4,-2000, 5, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1);
}
case 34: wepname = "Sniper Rifle";
case 33: wepname = "Country Rifle";
case 22: wepname = "Pistol";
case 27: wepname = "SPAZ-12 Shotgun";
case 29: wepname = "MP5";
case 8: wepname = "Katana";
case 5: wepname = "Baseball Bat";
case 23: wepname = "Silenced Pistol";
case 45: wepname = "Thermal Vision Goggles";
case 44: wepname = "Night Vision Goggles";
}