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: 232
Reputation: 2
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: 232
Reputation: 2
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: 251
Reputation: 52
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
adrianlouise
Huge Clucker
 
adrianlouise's Avatar
 
Join Date: Nov 2016
Posts: 221
Reputation: 48
Default Re: weapon-config.inc

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

i update all inc
crukk11 is offline   Reply With Quote
Old 12/05/2017, 05:39 PM   #6
adrianlouise
Huge Clucker
 
adrianlouise's Avatar
 
Join Date: Nov 2016
Posts: 221
Reputation: 48
Default Re: weapon-config.inc

Quote:
Originally Posted by crukk11 View Post
i update all inc
There is no warnings/errors or anything?
adrianlouise is online now   Reply With Quote
Old 12/05/2017, 05:43 PM   #7
crukk11
Huge Clucker
 
crukk11's Avatar
 
Join Date: Jan 2017
Location: Malaysia
Posts: 232
Reputation: 2
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: 121
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
Huge Clucker
 
aoky's Avatar
 
Join Date: Oct 2016
Location: Kildare, Ireland
Posts: 302
Reputation: 16
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
    } 
__________________
Join our pre-released forum whilst the server is in development by clicking below! We recently added a UCP!
United Roleplay
aoky is online now   Reply With Quote
Old 13/05/2017, 09:19 AM   #10
crukk11
Huge Clucker
 
crukk11's Avatar
 
Join Date: Jan 2017
Location: Malaysia
Posts: 232
Reputation: 2
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 693 15/07/2017 05:44 PM
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 08:58 PM.


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