SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 12/05/2017, 04:29 AM   #1
crukk11
Huge Clucker
 
crukk11's Avatar
 
Join Date: Jan 2017
Location: Malaysia
Posts: 315
Reputation: 5
Default weapon-config.inc

i have this command

PHP Code:
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
crukk11 is offline   Reply With Quote
Old 12/05/2017, 04:20 PM   #2
crukk11
Huge Clucker
 
crukk11's Avatar
 
Join Date: Jan 2017
Location: Malaysia
Posts: 315
Reputation: 5
Question Re: weapon-config.inc

Anyone?
crukk11 is offline   Reply With Quote
Old 12/05/2017, 04:51 PM   #3
Stones
Huge Clucker
 
Stones's Avatar
 
Join Date: Jun 2013
Location: United Kingdom
Posts: 249
Reputation: 56
Default Re: weapon-config.inc

Is there anything in your core script under

Code:
public OnPlayerTakeDamage
__________________
Stones is offline   Reply With Quote
Old 12/05/2017, 04:58 PM   #4
adri[4]Life
Guest
 
Posts: n/a
Default Re: weapon-config.inc

Make Sure That You're using the latest version of a_samp & weapon-config.inc
  Reply With Quote
Old 12/05/2017, 05:36 PM   #5
crukk11
Huge Clucker
 
crukk11's Avatar
 
Join Date: Jan 2017
Location: Malaysia
Posts: 315
Reputation: 5
Default Re: weapon-config.inc

i update all inc
crukk11 is offline   Reply With Quote
Old 12/05/2017, 05:39 PM   #6
adri[4]Life
Guest
 
Posts: n/a
Default Re: weapon-config.inc

Quote:
Originally Posted by crukk11 View Post
i update all inc
There is no warnings/errors or anything?
  Reply With Quote
Old 12/05/2017, 05:43 PM   #7
crukk11
Huge Clucker
 
crukk11's Avatar
 
Join Date: Jan 2017
Location: Malaysia
Posts: 315
Reputation: 5
Default Re: weapon-config.inc

Nothing error
crukk11 is offline   Reply With Quote
Old 12/05/2017, 07:33 PM   #8
ShihabSoft
Big Clucker
 
Join Date: Jun 2016
Posts: 109
Reputation: 7
Default Re: weapon-config.inc

Can't you just try out with an integer 100 not with a floating point 100.0.
ShihabSoft is offline   Reply With Quote
Old 12/05/2017, 11:43 PM   #9
aoky
Gangsta
 
aoky's Avatar
 
Join Date: Oct 2016
Location: Czech Republic
Posts: 513
Reputation: 133
Default Re: weapon-config.inc

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

And try this:
PHP Code:
CMD:hesoyam(playeridparams[]) 
 { 
        
SetPlayerHealth(playerid100); 
        
SetPlayerArmour(playerid500); 
        
GivePlayerMoney(playerid100); 
        
SendClientMessage(playerid0x00FF00"Cheat Activated!"); 
        return 
1
    } 
__________________
owner/developer @ koky's deathmatch

aoky is offline   Reply With Quote
Old 13/05/2017, 09:19 AM   #10
crukk11
Huge Clucker
 
crukk11's Avatar
 
Join Date: Jan 2017
Location: Malaysia
Posts: 315
Reputation: 5
Default Re: weapon-config.inc

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

http://imgur.com/a/ccRQt
crukk11 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] weapon-config.inc - Damage system with many features Slice Includes 816 10/06/2018 12:25 AM
Vehicle Damage [weapon-config.inc] Freedom. Scripting Help 5 15/06/2016 01:55 PM
Help with PF Config Stone_007 Server Support 1 14/09/2012 02:07 PM
Config carz0159 Server Support 2 19/07/2012 03:25 AM


All times are GMT. The time now is 05:10 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.