SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 15/04/2011, 12:48 PM   #1
Andregood
Huge Clucker
 
Andregood's Avatar
 
Join Date: Oct 2009
Location: Sweden
Posts: 285
Reputation: 26
Default Specific teams get specific abilities, how?

How am I able to give a specific team(Race in this case actually, like aliens) specific abilities, like hitting harder(More damage when fighting) and not giving it to the human team as well?
Andregood is offline  
Old 15/04/2011, 12:57 PM   #2
ronnie3148
Big Clucker
 
Join Date: Mar 2011
Posts: 71
Reputation: 0
Default Re: Specific teams get specific abilities, how?

This is how you do it.... HERE and HERE
__________________
Click banners To Connect!


ronnie3148 is offline  
Old 15/04/2011, 12:58 PM   #3
aircombat
High-roller
 
Join Date: Feb 2010
Posts: 1,535
Reputation: 9
Default Re: Specific teams get specific abilities, how?

it depends like if u want team aliens to use a command like : destroy it should be like :

pawn Code:
CMD:destroy(playerid,params[])
{
    if(gTeam[playerid] == TEAM_ALIENS)
    {
        //The Command Here
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED,"You Have To Be An Alien To Use This Command");
    }
    return 1;
}
__________________

aircombat is offline  
Old 15/04/2011, 02:01 PM   #4
Andregood
Huge Clucker
 
Andregood's Avatar
 
Join Date: Oct 2009
Location: Sweden
Posts: 285
Reputation: 26
Default Re: Specific teams get specific abilities, how?

Ronnie, I've searched through the forums very well, that is why I am asking this inquiry which I'd like to get answered, thanks.

Thanks for the response aircombat but I'm not certain that is it, I want my race to do more damage and perhaps even jump higher.

With other words, physically superior.
Andregood is offline  
Old 15/04/2011, 02:07 PM   #5
mrcoolballs
Huge Clucker
 
Join Date: Aug 2010
Posts: 204
Reputation: 2
Default Re: Specific teams get specific abilities, how?

Your best bet would be to use the user made function "IsPlayerShootingPlayer", You will have to search for it though
mrcoolballs is offline  
Old 15/04/2011, 02:57 PM   #6
aircombat
High-roller
 
Join Date: Feb 2010
Posts: 1,535
Reputation: 9
Default Re: Specific teams get specific abilities, how?

Quote:
Originally Posted by Andregood View Post
Ronnie, I've searched through the forums very well, that is why I am asking this inquiry which I'd like to get answered, thanks.

Thanks for the response aircombat but I'm not certain that is it, I want my race to do more damage and perhaps even jump higher.

With other words, physically superior.
i was just giving an example on how to use the "if"
__________________

aircombat is offline  
Old 15/04/2011, 03:38 PM   #7
Andregood
Huge Clucker
 
Andregood's Avatar
 
Join Date: Oct 2009
Location: Sweden
Posts: 285
Reputation: 26
Default Re: Specific teams get specific abilities, how?

Alright. Anyhow, I will look into that isPlayerShootingPlayer stuff, if anyone has done this though, feel free to post.


I found nothing in that name or anything near that.


Anyone else got anything that might help me out?
Andregood is offline  
Old 15/04/2011, 04:08 PM   #8
aircombat
High-roller
 
Join Date: Feb 2010
Posts: 1,535
Reputation: 9
Default Re: Specific teams get specific abilities, how?

http://forum.sa-mp.com/showthread.ph...layer+shooting

use the OnPlayerShootPlayer include and then use the if function i've given an example for above
__________________

aircombat 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
Looking for an specific sound JulietaZ Help Archive 4 01/10/2010 02:16 AM
How can i spawn a specific player in a specific vehicle ? AlbanianGuy Help Archive 8 16/01/2010 07:31 AM
Checpoint only for specific name! krisis32 Help Archive 1 13/04/2009 07:04 AM


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


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