05.12.2009, 12:29
Use Pastebin next time:
Say for example The skins on OnGameModeInit was the first 4 one team the next 4 the other team your OnPlayerRequestClasss would be something like that.
pawn Код:
public OnPlayerRequestClass(playerid,classid)
{
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
if(classid == 0 || classid == 1 || classid == 2 || classid == 3)
{
PlayerTeam[playerid] = 0;
SetPlayerTeam(playerid,0);
}
else if(classid == 4 || classid == 5 || classid == 6 || classid == 7)
{
PlayerTeam[playerid] = 1;
SetPlayerTeam(playerid,1);
}
return 1;
}