SA-MP Forums Archive
[Help]i Want Know Somthings - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help]i Want Know Somthings (/showthread.php?tid=542938)



[Help]i Want Know Somthings - astanalol00 - 23.10.2014

i Want Know How To Make Team [Kidnap] Team [Hitman] ...
i Know How To Make it But i Want Know How To Make it For Civ Only if he is Team HitMan Cant Use Kidnap ..
+ Save That To See He is Hitman Or Kidnap To Can use it y_ini
Thanks Please Example +Rep


Re: [Help]i Want Know Somthings - gurmani11 - 23.10.2014

I LOVE ****** !!!!!!!!


Re: [Help]i Want Know Somthings - Rudy_ - 23.10.2014

You must use GetPlayerTeam.
pawn Код:
if(GetPlayerTeam(playerid) == TEAM_HITMAN)
Replace the team_hitman with your team name.....
now you can use
pawn Код:
CMD:kidnap(playerid, params[])
{
    if(GetPlayerTeam(playerid) == TEAM_HITMAN)
    {
        //Player team is hitman, so he can use the command
    }
    else
    {
        //Player team is not hitman, sendclientmessage that he is not in hitman team
    }
    return 1;
}



Re: [Help]i Want Know Somthings - astanalol00 - 23.10.2014

Quote:
Originally Posted by Rudy_
Посмотреть сообщение
You must use GetPlayerTeam.
pawn Код:
if(GetPlayerTeam(playerid) == TEAM_HITMAN)
Replace the team_hitman with your team name.....
now you can use
pawn Код:
CMD:kidnap(playerid, params[])
{
    if(GetPlayerTeam(playerid) == TEAM_HITMAN)
    {
        //Player team is hitman, so he can use the command
    }
    else
    {
        //Player team is not hitman, sendclientmessage that he is not in hitman team
    }
    return 1;
}
Sorry But My Problem i Have The gTeam Civ Ok i Want Use it in Hit man Or Kidnap this only i want use it in skill this gTeam To i ask Now in the post to my head its will suck