02.04.2013, 12:35
Yes, it does.
But i cant find the scrpt fault.
EDIT;
Well, Now i got this..
at OnPlayerRequestClass
And it doesn't skip the Class selection. :S
But i cant find the scrpt fault.
EDIT;
Well, Now i got this..
at OnPlayerRequestClass
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
new string[128];
SetPlayerPos(playerid, 786.2990,845.2061,176.7938);
SetPlayerCameraPos(playerid, 779.6148,845.5803,180.1051);
SetPlayerCameraLookAt(playerid, 786.2990,845.2061,176.7938);
if( isDead[ playerid ] == 1 ) SpawnPlayer( playerid );
if(classid == 0)
{
format(string, sizeof(string), "~r~Terrorists");
GameTextForPlayer(playerid, string, 3000, 6);
SetPlayerSkin(playerid, 294);
PlayerInfo[playerid][pTeam] = 1;
SetPlayerColor(playerid, COLOR_RED);
return 0;
}
else if(classid == 1)
{
format(string, sizeof(string), "~b~Counter-Terrorists");
GameTextForPlayer(playerid, string, 3000, 6);
SetPlayerSkin(playerid, 285);
PlayerInfo[playerid][pTeam] = 2;
SetPlayerColor(playerid, COLOR_BLUE);
return 0;
}
return 1;
}