30.03.2016, 22:48
[PHP]public SetPlayerToTeamColor(playerid)
{
if(gTeam[playerid] == TEAM_ARMY) {
SetPlayerColor(playerid,COLOR_GOLD);
}
}[PHP]
[PHP]public OnPlayerRequestClass(playerid, classid)
{
gPlayerClass[playerid] = classid;
switch (classid) {
case 0,1,2,3,4,5,6,7,8,9:
{
gTeam[playerid] = TEAM_ARMY;
GameTextForPlayer(playerid, "~y~~h~~h~The Army", 1000, 6);
}
}
SetPlayerPos(playerid, 2524.2695,-1696.2926,18.2204);
SetPlayerFacingAngle( playerid, 2.3616 );
SetPlayerCameraPos(playerid, 2523.7749,-1692.6855,18.9011);
SetPlayerCameraLookAt(playerid, 2524.2695,-1696.2926,18.2204);
return 1;
}[PHP]
{
if(gTeam[playerid] == TEAM_ARMY) {
SetPlayerColor(playerid,COLOR_GOLD);
}
}[PHP]
[PHP]public OnPlayerRequestClass(playerid, classid)
{
gPlayerClass[playerid] = classid;
switch (classid) {
case 0,1,2,3,4,5,6,7,8,9:
{
gTeam[playerid] = TEAM_ARMY;
GameTextForPlayer(playerid, "~y~~h~~h~The Army", 1000, 6);
}
}
SetPlayerPos(playerid, 2524.2695,-1696.2926,18.2204);
SetPlayerFacingAngle( playerid, 2.3616 );
SetPlayerCameraPos(playerid, 2523.7749,-1692.6855,18.9011);
SetPlayerCameraLookAt(playerid, 2524.2695,-1696.2926,18.2204);
return 1;
}[PHP]