07.09.2012, 18:29
try mine
pawn Код:
SetPlayerClass(playerid, classid);
//--------------------------Selection Screen Colors-----------------------------
switch (classid)
{
//-------------------------------SF Worker
case 0:
{
//worker
TextDrawShowForPlayer(playerid, worker0);
TextDrawShowForPlayer(playerid, worker1);
//hide
TextDrawHideForPlayer(playerid, pimp0);
TextDrawHideForPlayer(playerid, pimp1);
TextDrawHideForPlayer(playerid, golfer0);
TextDrawHideForPlayer(playerid, golfer1);
TextDrawHideForPlayer(playerid, triad0);
TextDrawHideForPlayer(playerid, triad1);
TextDrawHideForPlayer(playerid, army0);
TextDrawHideForPlayer(playerid, army1);
TextDrawHideForPlayer(playerid, mechanic0);
TextDrawHideForPlayer(playerid, mechanic1);
TextDrawHideForPlayer(playerid, medic0);
TextDrawHideForPlayer(playerid, medic1);
TextDrawHideForPlayer(playerid, swat0);
TextDrawHideForPlayer(playerid, swat1);
TextDrawHideForPlayer(playerid, chicken0);
TextDrawHideForPlayer(playerid, chicken1);
TextDrawHideForPlayer(playerid, toreno0);
TextDrawHideForPlayer(playerid, toreno1);
TextDrawHideForPlayer(playerid, pilot0);
TextDrawHideForPlayer(playerid, pilot1);
TextDrawHideForPlayer(playerid, nang0);
TextDrawHideForPlayer(playerid, nang1);
GameTextForPlayer(playerid, "~r~SF WORKER", 2000, 5);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, -2109.7576,184.2289,35.1503);
SetPlayerFacingAngle(playerid,160.3343);
SetPlayerCameraPos(playerid, -2108.96,175.01,36.31);
SetPlayerCameraLookAt(playerid, -2109.7576,184.2289,35.1503);
PlayerPlaySound(playerid,SOUND_MUSIC1,-2109.7576,184.2289,35.1503);
}