27.02.2011, 15:23
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?
How to do that?
if( gTeam[ playerid ] == TEAM_SF )
{
// If player is TEAM_SF code.
}
else
{
// If player is not TEAM_SF code.
}
if( gTeam[ playerid ] == TEAM_SF )
{
SendClientMessage( playerid, 0xAAAAAA, "You are TEAM_SF" );
}
else
{
SendClientMessage( playerid, 0xAAAAAA, "You are not TEAM_SF" );
}
if(GetPlayerSkin(playerid) == 0)
{
SendClientMessage(playerid, 0xFF0000F, "You is using skin id 0");
}
else
{
SendClientMessage(playerid, 0xFF0000F, "You are not using Skin ID 0");
}