Script doesn't recognize bodyparts
#5

Use it like this, this code is faster, better and optimized.
PHP код:
if(issuerid != INVALID_PLAYER_ID)
{
    switch(
bodypart)
    {
        case 
0:
        {
            switch(
weaponid)
            {
                case 
WEAPON_KNIFEGivePlayerHealth(playeridWEAPON_KNIFE_DAMAGE);
            }
        }
        case 
.. 8:
    }

PHP код:
GivePlayerHealth(playeriddamage)
{
    new 
Float:GetPlayerHealth(playerid);
    
SetPlayerHealth(playeriddamage);
    return 
1;

Reply


Messages In This Thread
Script doesn't recognize bodyparts - by cs_waller - 13.08.2016, 00:15
Re: Script doesn't recognize bodyparts - by Trucido - 13.08.2016, 02:15
Re: Script doesn't recognize bodyparts - by Logic_ - 13.08.2016, 09:36
Re: Script doesn't recognize bodyparts - by cs_waller - 13.08.2016, 23:55
Re: Script doesn't recognize bodyparts - by Logic_ - 14.08.2016, 07:28

Forum Jump:


Users browsing this thread: 1 Guest(s)