22.08.2015, 12:10
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0:
{
gTeam[playerid] = TEAM_JUTUM;
GameTextForPlayer(playerid, "~b~JUTUM", 5000, 5);
SetPlayerPos(playerid,220.3261,1822.9734,7.5368);
SetPlayerCameraLookAt(playerid,220.3261,1822.9734,7.5368);
SetPlayerCameraPos(playerid,226.7491,1823.0441,7.4141);
SetPlayerFacingAngle(playerid, 270 );
ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);
CreateExplosion(212.9525,1822.9084,6.4141, 11, 10.0);
}
case 1:
{
gTeam[playerid] = TEAM_KOKUS;
GameTextForPlayer(playerid, "~r~KOKUS", 5000, 5);
SetPlayerPos(playerid,220.3261,1822.9734,7.5368);
SetPlayerCameraLookAt(playerid,220.3261,1822.9734,7.5368);
SetPlayerCameraPos(playerid,226.7491,1823.0441,7.4141);
SetPlayerFacingAngle(playerid, 270 );
ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);
CreateExplosion(212.9525,1822.9084,6.4141, 11, 10.0);
}
case 2:
{
gTeam[playerid] = TEAM_JUMBO;
GameTextForPlayer(playerid, "~r~JUMBO", 5000, 5);
SetPlayerPos(playerid,220.3261,1822.9734,7.5368);
SetPlayerCameraLookAt(playerid,220.3261,1822.9734,7.5368);
SetPlayerCameraPos(playerid,226.7491,1823.0441,7.4141);
SetPlayerFacingAngle(playerid, 270 );
ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);
CreateExplosion(212.9525,1822.9084,6.4141, 11, 10.0);
}
}
}