26.06.2011, 19:52
pawn Код:
public OnGameModeInit()
{
AddPlayerClass(1, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0); // Survivors
AddPlayerClass(2, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0); // Survivors
AddPlayerClass(3, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0); // Survivors
AddPlayerClass(4, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0); //Zombies
AddPlayerClass(5, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
AddPlayerClass(6, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerTeamFromClass(playerid, classid);
return 1;
}
public SetPlayerTeamFromClass(playerid, classid)
{
switch(classid)
{
case 0..2:
{
GameTextForPlayer(playerid, "~w~Survivor", 1500, 6);
SetPlayerInterior(playerid,0);
SetPlayerCameraPos(playerid, 2446.008056, -1974.017700, 13.546875);
SetPlayerCameraLookAt(playerid, 2442.248535, -1971.448486, 13.546875);
SetPlayerPos(playerid, 2442.248535, -1971.448486, 13.546875);
SetPlayerInterior(playerid, 0);
SetPlayerFacingAngle(playerid, 226.874053);
ApplyAnimation(playerid,"COLT45","colt45_crouchfire",4.1,1,1,1,1,1);
}
case 3..5:
{
GameTextForPlayer(playerid, "~y~Zombie", 1500, 6);
SetPlayerInterior(playerid,0);
SetPlayerCameraPos(playerid, 2446.008056, -1974.017700, 13.546875);
SetPlayerCameraLookAt(playerid, 2442.248535, -1971.448486, 13.546875);
SetPlayerPos(playerid, 2442.248535, -1971.448486, 13.546875);
SetPlayerInterior(playerid, 0);
SetPlayerFacingAngle(playerid, 226.874053);
ApplyAnimation(playerid,"WUZI","CS_Dead_Guy",4.1,1,1,1,1,1);
}
}
return 1;
}