30.08.2018, 02:39
Код:
GetPlayerTeam(playerid)
Example Code:
Код:
new team[MAX_PLAYERS]; #define TEAM1 1 CMD:team(playerid) { team[playerid] = TEAM1; SetPlayerTeam(playerid, team[playerid]); // This function will set the player team. return 1; } CMD:myteam(playerid) { if(GetPlayerTeam(playerid) == TEAM1) // To Get the Player team (TEAM1) using GetPlayerTeam. { SendClientMessage(playerid, -1, "Your team is TEAM1"); } return 1; }