SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 08/04/2010, 03:22 PM   #1
Thrarod
Huge Clucker
 
Join Date: Jan 2010
Posts: 455
Reputation: 0
Default [Tuts4Nubs]I wants a cig in ma hand when I writes /smoke!!!

Easy, use SetPlayerSpecialAction!

pawn Code:
if(strcmp("/smoke", cmd, true) == 0)
    {
        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
        GivePlayerMoney(playerid, -2);
        return 1;
    }

Tada!!! When you write /smoke it takes 2 money and gives a cig, comment ( // ) GivePlayerMoney part if you want cigs to be free or just delete it, also search the wiki for more info about SetPlayerSpecialAction

I was really bored and people playing my server asks how I get cigs with a command
Thrarod is offline  
Old 08/04/2010, 03:31 PM   #2
Steven82
High-roller
 
Join Date: Nov 2009
Posts: 2,431
Reputation: 186
Default Re: [Tuts4Nubs]I wants a cig in ma hand when I writes /smoke!!!

Hey this is very simple is that why it called,


Code:
Tuts4Nubs

LOlz
__________________
If you read my old posts; I apologize in advance.
Steven82 is offline  
Old 08/04/2010, 03:41 PM   #3
Thrarod
Huge Clucker
 
Join Date: Jan 2010
Posts: 455
Reputation: 0
Default Re: [Tuts4Nubs]I wants a cig in ma hand when I writes /smoke!!!

I am bored
And there are people askin that really xD
Thrarod is offline  
Old 08/04/2010, 03:44 PM   #4
Steven82
High-roller
 
Join Date: Nov 2009
Posts: 2,431
Reputation: 186
Default Re: [Tuts4Nubs]I wants a cig in ma hand when I writes /smoke!!!

hahah lol, i made rodney level 23
__________________
If you read my old posts; I apologize in advance.
Steven82 is offline  
Old 08/04/2010, 03:45 PM   #5
Thrarod
Huge Clucker
 
Join Date: Jan 2010
Posts: 455
Reputation: 0
Default Re: [Tuts4Nubs]I wants a cig in ma hand when I writes /smoke!!!

Thx xD
Thrarod is offline  
 

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
I need a hand xLowrider Help Archive 1 03/12/2009 09:01 AM
/smoke help. Los Santos RP Help Archive 3 26/11/2009 03:31 PM
when i edit from my friends gta san andreas server it writes to the script wrong teamsheetz Server Support 1 02/07/2009 07:27 PM
[SOLVED] /admins problem - writes about 10-15 lines Castle Help Archive 12 21/05/2009 08:52 AM


All times are GMT. The time now is 05:45 PM.


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