05.11.2015, 20:25
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
TextDrawHideForPlayer(playerid, Textdraw0);
SetPlayerPos(playerid, 1026.3941, -2181.1584, 40.8012);
SetPlayerInterior(playerid, 0);
SetPlayerFacingAngle(playerid, 1.6982);
SetPlayerCameraPos(playerid, 1022.8941, -2177.1584, 42.3012);
SetPlayerCameraLookAt(playerid, 1027.0232, -2179.7837, 40.4760);
ApplyAnimation(playerid,"DANCING","DAN_LOOP_A",4.0,1,0,0,0,-1);
switch (classid)
{
case 0, 1, 2:
{
GameTextForPlayer(playerid, "Grove", 1500, 6);
}
case 3, 4, 5:
{
GameTextForPlayer(playerid, "Ballas", 1500, 6);
}
case 6, 7, 8:
{
GameTextForPlayer(playerid, "Vagos", 1500, 6);
}
case 9, 10, 11:
{
GameTextForPlayer(playerid, "Policia", 1500, 6);
}
case 12, 13, 14:
{
GameTextForPlayer(playerid, "Anonymous", 1500, 6);
}
}
return 1;
}