SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 23/06/2012, 02:54 PM   #11
nilanjay
Huge Clucker
 
Join Date: May 2011
Location: India
Posts: 376
Reputation: 13
Default Re: Help!

Put your /cuff codes here.
__________________

Releases

nilanjay is offline   Reply With Quote
Old 23/06/2012, 02:57 PM   #12
Jonny5
Gangsta
 
Join Date: Mar 2012
Location: Mi, USA
Posts: 935
Reputation: 146
Default Re: Help!

heres mine but you will need sscanf

pawn Code:
CMD:cuff(playerid, params[])
{
   
    new targetid;
    if(sscanf(params,"r",targetid)) return SendClientMessage(playerid, 0xFF9933FF, "/cuff [playername/id]");
    RemovePlayerAttachedObject(targetid, 9);
    SetPlayerAttachedObject(targetid, 9, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
    SetPlayerSpecialAction(targetid, SPECIAL_ACTION_CUFFED);
   
    return 1;
}

CMD:uncuff(playerid, params[])
{
    new targetid;
    if(sscanf(params,"r",targetid)) return SendClientMessage(playerid, 0xFF9933FF, "/uncuff [playername/id]");
    RemovePlayerAttachedObject(targetid, 9);
    SetPlayerSpecialAction(targetid, SPECIAL_ACTION_NONE);
    return 1;
}
add in your own code to allow/prohibit access
as i striped mine and convert from ycmd to zcmd for ya
__________________
If your topic says "REP+", I ignore it.

If you haven't tried it I suggest you do so.
Pawn PlayGround By Slice!
Jonny5 is offline   Reply With Quote
Old 23/06/2012, 03:01 PM   #13
nilanjay
Huge Clucker
 
Join Date: May 2011
Location: India
Posts: 376
Reputation: 13
Default Re: Help!

pawn Code:
CMD:cuff(playerid, params[])
{
   
    new targetid;
    if(sscanf(params,"r",targetid)) return SendClientMessage(playerid, 0xFF9933FF, "/cuff [playername/id]");
    RemovePlayerAttachedObject(targetid, 9);// I wonder why you need this code here?
    SetPlayerAttachedObject(targetid, 9, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
    SetPlayerSpecialAction(targetid, SPECIAL_ACTION_CUFFED);
   
    return 1;
}
__________________

Releases

nilanjay is offline   Reply With Quote
Old 23/06/2012, 03:04 PM   #14
PaulDinam
Gangsta
 
PaulDinam's Avatar
 
Join Date: Jun 2011
Location: Israel.
Posts: 702
Reputation: 26
Default Re: Help!

Thank you i made it!
PaulDinam is offline   Reply With Quote
Old 23/06/2012, 03:10 PM   #15
Jonny5
Gangsta
 
Join Date: Mar 2012
Location: Mi, USA
Posts: 935
Reputation: 146
Default Re: Help!

Quote:
Originally Posted by nilanjay View Post
pawn Code:
CMD:cuff(playerid, params[])
{
   
    new targetid;
    if(sscanf(params,"r",targetid)) return SendClientMessage(playerid, 0xFF9933FF, "/cuff [playername/id]");
    RemovePlayerAttachedObject(targetid, 9);// I wonder why you need this code here?
    SetPlayerAttachedObject(targetid, 9, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
    SetPlayerSpecialAction(targetid, SPECIAL_ACTION_CUFFED);
   
    return 1;
}
i put that their to remove any object that MAY be in that slot.
On my server I have a system for users to attach objects to their self.
But i guess not letting them use slot 9 would be better thanks!

regards,
__________________
If your topic says "REP+", I ignore it.

If you haven't tried it I suggest you do so.
Pawn PlayGround By Slice!
Jonny5 is offline   Reply With Quote
Old 23/06/2012, 03:14 PM   #16
PaulDinam
Gangsta
 
PaulDinam's Avatar
 
Join Date: Jun 2011
Location: Israel.
Posts: 702
Reputation: 26
Default Re: Help!

can someone give me list of all new anims?
or the command?
PaulDinam is offline   Reply With Quote
Old 23/06/2012, 03:18 PM   #17
Jonny5
Gangsta
 
Join Date: Mar 2012
Location: Mi, USA
Posts: 935
Reputation: 146
Default Re: Help!

http://wiki.sa-mp.com/wiki/Animations
__________________
If your topic says "REP+", I ignore it.

If you haven't tried it I suggest you do so.
Pawn PlayGround By Slice!
Jonny5 is offline   Reply With Quote
Old 23/06/2012, 03:19 PM   #18
PaulDinam
Gangsta
 
PaulDinam's Avatar
 
Join Date: Jun 2011
Location: Israel.
Posts: 702
Reputation: 26
Default Re: Help!

ALL THE SPECIAL ACTIONS ID
PaulDinam is offline   Reply With Quote
Old 23/06/2012, 03:20 PM   #19
Jonny5
Gangsta
 
Join Date: Mar 2012
Location: Mi, USA
Posts: 935
Reputation: 146
Default Re: Help!

man its all in the wiki

http://wiki.sa-mp.com/wiki/SpecialActions
__________________
If your topic says "REP+", I ignore it.

If you haven't tried it I suggest you do so.
Pawn PlayGround By Slice!
Jonny5 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



All times are GMT. The time now is 07:07 AM.


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