17.06.2012, 11:48
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1220.0737,-6.3703,1001.3281);
SetPlayerInterior(playerid,2);
SetPlayerFacingAngle(playerid,92.3402);
SetPlayerCameraPos(playerid,1214.3527,-6.4071,1001.3290);
SetPlayerCameraLookAt(playerid, 1220.0737,-6.3703,1000.3281);
switch(classid)
{
case 1:
{
GameTextForPlayer(playerid, "~b~~h~Englad", 5000, 6);
Team[playerid] = 1;
}
case 2:
{
GameTextForPlayer(playerid, "~b~~h~England", 5000, 6);
Team[playerid] = 1;
}
case 3:
{
GameTextForPlayer(playerid, "~b~~h~England", 5000, 6);
Team[playerid] = 1;
}
case 4:
{
GameTextForPlayer(playerid, "~P~Russia", 5000, 6);
Team[playerid] = 2;
}
case 5:
{
GameTextForPlayer(playerid, "~P~Russia", 5000, 6);
Team[playerid] = 2;
}
}
return 1;
}
SetPlayerTeamFromClass(playerid, classid)
{
switch(classid)
{
case 1:
{
GameTextForPlayer(playerid, "~b~~h~England", 5000, 6);
Team[playerid] = 1;
}
case 2:
{
GameTextForPlayer(playerid, "~b~~h~England", 5000, 6);
Team[playerid] = 1;
}
case 3:
{
GameTextForPlayer(playerid, "~b~~h~England", 5000, 6);
Team[playerid] = 1;
}
case 4:
{
GameTextForPlayer(playerid, "~p~Russia", 5000, 6);
Team[playerid] = 2;
}
case 5:
{
GameTextForPlayer(playerid, "~p~Russia", 5000, 6);
Team[playerid] = 2;
}
}
return 1;
}