13.06.2014, 03:30
Hey guys, so I decided to build shell system by using OnPlayerWeaponShot, so I got in trouble that I wanted to make the 3dtextlabel disappear after some of time but I get an errors everytime trying to put a timer, someone can tell me how I can make all those to disappear after like 5minutes with timer?
PHP код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
if(weaponid == 24)
{
Create3DTextLabel("Desert Eagle Shell", COLOR_GREY, X, Y, Z, 30.0, 0, 0);
}
if(weaponid == 31)
{
Create3DTextLabel("M416 Assult rifle Shell", COLOR_GREY, X, Y, Z, 30.0, 0, 0);
}
if(weaponid == 30)
{
Create3DTextLabel("AK-47 Assult rifle Shell", COLOR_GREY, X, Y, Z, 30.0, 0, 0);
}
if(weaponid == 22)
{
Create3DTextLabel("9MM Pistol Shell", COLOR_GREY, X, Y, Z, 30.0, 0, 0);
}
if(weaponid == 23)
{
Create3DTextLabel("9MM Silencer Shell", COLOR_GREY, X, Y, Z, 30.0, 0, 0);
}
if(weaponid == 25)
{
Create3DTextLabel("Remington ShotGun Shell", COLOR_GREY, X, Y, Z, 30.0, 0, 0);
}
if(weaponid == 28)
{
Create3DTextLabel("UZI SMG Shell", COLOR_GREY, X, Y, Z, 30.0, 0, 0);
}
if(weaponid == 29)
{
Create3DTextLabel("MP5 SMG Shell", COLOR_GREY, X, Y, Z, 30.0, 0, 0);
}
if(weaponid == 32)
{
Create3DTextLabel("TEC9 SMG Shell", COLOR_GREY, X, Y, Z, 30.0, 0, 0);
}
if(weaponid == 33)
{
Create3DTextLabel("Contry Rifle Shell", COLOR_GREY, X, Y, Z, 30.0, 0, 0);
}
if(weaponid == 34)
{
Create3DTextLabel("Sniper Rifle Shell", COLOR_GREY, X, Y, Z, 30.0, 0, 0);
}
return true;
}