A command for 1 team only.
#1

Well, I want to make a command, it will open a dialog when done but I want to make it for only 1 team (TEAM_SF)
How to do that?
Reply
#2

pawn Код:
if( gTeam[ playerid ] == TEAM_SF )
{
    // If player is TEAM_SF code.
}
else
{
    // If player is not TEAM_SF code.
}
If you don't use gTeam, change it to your own variable.

Example:
pawn Код:
if( gTeam[ playerid ] == TEAM_SF )
{
    SendClientMessage( playerid, 0xAAAAAA, "You are TEAM_SF" );
}
else
{
    SendClientMessage( playerid, 0xAAAAAA, "You are not TEAM_SF" );
}
Reply
#3

Thanks!
And what about only for a person in a specific skin? Such as skin 0 for example.
Reply
#4

pawn Код:
if(GetPlayerSkin(playerid) == 0)
{
    SendClientMessage(playerid, 0xFF0000F, "You is using skin id 0");
}
else
{
    SendClientMessage(playerid, 0xFF0000F, "You are not using Skin ID 0");
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)