09.09.2010, 13:11
yes with SPECIAL_ACTION_DANCE2 but I suggested to try it with SPECIAL_ACTION_NONE to stop it afterwards in OnPlayerSpawn
pawn Код:
public OnPlayerSpawn(playerid)
{
GameTextForPlayer(playerid, "Welcome to hell", 2000, 6);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE); //here I meant
switch(gTeam[playerid])
{
case TEAM_ARMY:
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1553.3546, -1675.4446, 16.1953);
GivePlayerWeapon(playerid, 26, 100);
GivePlayerWeapon(playerid, 29, 500);
GivePlayerWeapon(playerid, 30, 300);
SetPlayerColor(playerid, COLOR_BRIGHTRED);
}
case TEAM_LSPD:
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 116.6943, 1933.8201, 18.9704);
GivePlayerWeapon(playerid, 27, 100);
GivePlayerWeapon(playerid, 31, 300);
GivePlayerWeapon(playerid, 35, 2);
SetPlayerColor(playerid, COLOR_BLUE);
}
default:
printf("*** OnPlayerSpawn: Team [%d] not defined!", gTeam[playerid]);
}
return 1;
}


