22.04.2012, 14:01
What Rachael said is:
My question is: You have 4 times AddPlayerClass?
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
printf("Called OnPlayerRequestClass(for player: %d,for classid: %d)",playerid,classid);
switch(classid)
{
case 0:
{
//Police Spawn
SetPlayerPos(playerid, 2296.5662,2451.6270, 10.8203);
SetPlayerFacingAngle(playerid, 87.8270);
//Camera Position Police
SetPlayerCameraPos(playerid, 2293.3640,2451.7341,12.8203);
//Police Spawn
SetPlayerCameraLookAt(playerid, 2296.5662,2451.6270, 10.8203);
PlayerInfo[playerid][Team] = Cops;
}
case 1:
{
SetPlayerPos(playerid, 2516.9578,2447.6992,11.0313);
SetPlayerFacingAngle(playerid, 269.7719);
SetPlayerCameraPos(playerid, 2521.2405,2447.5195,12.0313);
SetPlayerCameraLookAt(playerid, 2516.9578,2447.6992,11.0313);
PlayerInfo[playerid][Team] = Civilian;
}
case 2:
{
SetPlayerPos(playerid, 2296.5662,2451.6270, 10.8203);
SetPlayerFacingAngle(playerid, 87.8270);
//Camera Position Police
SetPlayerCameraPos(playerid, 2293.3640,2451.7341,12.8203);
//Police Spawn
SetPlayerCameraLookAt(playerid, 2296.5662,2451.6270, 10.8203);
PlayerInfo[playerid][Team] = Cops;
}
case 3:
{
SetPlayerPos(playerid, 2516.9578,2447.6992,11.0313);
SetPlayerFacingAngle(playerid, 269.7719);
SetPlayerCameraPos(playerid, 2521.2405,2447.5195,12.0313);
SetPlayerCameraLookAt(playerid, 2516.9578,2447.6992,11.0313);
PlayerInfo[playerid][Team] = Civilian;
}
}
return 1;
}