weapon-config.inc
#1

i have this command

PHP код:
if (strcmp("/HESOYAM"cmdtexttrue10) == 0// Health, Armour, +$100
    
{
        
SetPlayerHealth(playerid100.0); << not work
        SetPlayerArmour
(playerid500);
        
GivePlayerMoney(playerid100);
        
SendClientMessage(playerid,green,"Cheat Activated!");
        return 
1;
    } 
but not work

when i add this weapon-config.inc
to my gamemode
Reply
#2

Anyone?
Reply
#3

Is there anything in your core script under

Код:
public OnPlayerTakeDamage
Reply
#4

Make Sure That You're using the latest version of a_samp & weapon-config.inc
Reply
#5

i update all inc
Reply
#6

Quote:
Originally Posted by crukk11
Посмотреть сообщение
i update all inc
There is no warnings/errors or anything?
Reply
#7

Nothing error
Reply
#8

Can't you just try out with an integer 100 not with a floating point 100.0.
Reply
#9

Download this include: https://pastebin.com/raw/SbJc7iXa

And try this:
PHP код:
CMD:hesoyam(playeridparams[]) 
 { 
        
SetPlayerHealth(playerid100); 
        
SetPlayerArmour(playerid500); 
        
GivePlayerMoney(playerid100); 
        
SendClientMessage(playerid0x00FF00"Cheat Activated!"); 
        return 
1
    } 
Reply
#10

fix. but when my armour has run out until my health and go death

http://imgur.com/a/ccRQt
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)