[Ajuda] World
#1

Tenho um sistema de headshot do n3xtermapper sla o nome aaheauhe й queria que so funcionasse no world 0 atй o 2

code:

Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{

    if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9) //weaponid == 34 <- sniper , bodypart == 9 <- cabeзa
    {
        new Float:x, Float:y, Float:z;
        GetPlayerPos(playerid, x, y, z);
        CreateExplosion(x, y, z, 12, 10.0);
        SetPlayerHealth(playerid, 0.0);
        GameTextForAll("~n~~n~~n~~n~~n~~n~~B~~H~HEAD ~W~~H~SHOT ~R~~H~BABY !", 5000, 3);
        SendClientMessage(playerid,-1, "{F55454}[INFO]: Vocк acaba de levar 1 Headshot .");
        ContarHeadShot[issuerid] ++;
    }

    new Float:HP;
    GetPlayerHealth(playerid, HP);
    if(weaponid == 34)  SetPlayerHealth(playerid, HP-49);       //SniperRifle
Reply


Messages In This Thread
World - by zqkRazer - 11.09.2014, 18:49
Re: World - by FallweN - 11.09.2014, 19:02
Re: World - by ViniBorn - 11.09.2014, 19:03
Re: World - by FallweN - 11.09.2014, 19:08
Re: World - by PT - 11.09.2014, 19:10
Re: World - by zqkRazer - 11.09.2014, 19:31
Re: World - by Bruno13 - 11.09.2014, 19:38
Re: World - by zqkRazer - 11.09.2014, 19:38
Re: World - by zqkRazer - 11.09.2014, 19:47
Re: World - by ViniBorn - 11.09.2014, 22:00

Forum Jump:


Users browsing this thread: 2 Guest(s)