SA-MP Forums Archive
weapon-config.inc - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: weapon-config.inc (/showthread.php?tid=634035)



weapon-config.inc - crukk11 - 12.05.2017

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


Re: weapon-config.inc - crukk11 - 12.05.2017

Anyone?


Re: weapon-config.inc - Stones - 12.05.2017

Is there anything in your core script under

Код:
public OnPlayerTakeDamage



Re: weapon-config.inc - adri[4]Life - 12.05.2017

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


Re: weapon-config.inc - crukk11 - 12.05.2017

i update all inc


Re: weapon-config.inc - adri[4]Life - 12.05.2017

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


Re: weapon-config.inc - crukk11 - 12.05.2017

Nothing error


Re: weapon-config.inc - ShihabSoft - 12.05.2017

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


Re: weapon-config.inc - aoky - 12.05.2017

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
    } 



Re: weapon-config.inc - crukk11 - 13.05.2017

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

http://imgur.com/a/ccRQt