25.07.2017, 13:39
I want when player choose class (team) he can see only he's team in the map (markers) and names (name tags).
Edit because my bad english: When a player selects a team, he can only see his teammates on the map, and only the names of his teammates.
my code:
Edit because my bad english: When a player selects a team, he can only see his teammates on the map, and only the names of his teammates.
my code:
PHP код:
public OnPlayerRequestClass(playerid,classid)
{
switch(classid)
{
case 0:
{
SetPlayerTeam(playerid,******);
SetPlayerColor(playerid,******");
SetPlayerPos(playerid, ******);
SetPlayerCameraPos(playerid, ******);
SetPlayerCameraLookAt(playerid, ******);
SendClientMessage(playerid,0x2641FE00,"******");
SendClientMessage(playerid,0x2641FE00,"******");
SendClientMessage(playerid,0x2641FE00,"******");
SendClientMessage(playerid,0x2641FE00,"******");
return 1;
}
case 1:
{
SetPlayerTeam(playerid,******);
SetPlayerColor(playerid,******");
SetPlayerPos(playerid, ******);
SetPlayerCameraPos(playerid, ******);
SetPlayerCameraLookAt(playerid, ******);
SendClientMessage(playerid,0x2641FE00,"******");
SendClientMessage(playerid,0x2641FE00,"******");
SendClientMessage(playerid,0x2641FE00,"******");
SendClientMessage(playerid,0x2641FE00,"******");
return 1;
}
}
return 1;
}