20.01.2013, 07:15
replace it
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0..2 //if the class id is 0 to 2, AKA Grove
{
SetPlayerPos(playerid, 2498.8213,-1684.5753,13.4179); //Grove position
SetPlayerCameraPos(playerid, 2497.7188,-1680.2167,13.3547); //Grove camera
SetPlayerCameraLookAt(playerid, 2498.5054,-1684,13.3547); //Grove position
SetPlayerFacingAngle (playerid, 12.5838); //Grove angle
}
case 3..5: //if the class id is 3 to 5, AKA Ballas
{
SetPlayerPos(playerid, 2304.2261,-1650.4573,14.5472); //Ballas Position
SetPlayerCameraPos(playerid, 2304.2261,-1650.4573,14.5472); //Ballas Camera
SetPlayerCameraLookAt(playerid, 2304.3811,-1655.1173,14.4548); //Ballas Position
SetPlayerFacingAngle (playerid, 178.9947); //Ballas Angle
}
}
return 1;
}