Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerCameraPos(playerid, 2635.6624,2326.5103,30.9272);
SetPlayerPos(playerid, 2635.6624,2332.5103,30.9272);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerCameraLookAt(playerid, 2635.6624,2332.5103,30.9272);
PlayCrimeReportForPlayer(playerid, playerid, 3);
GameTextForPlayer(playerid, "~r~Welcome ~y~to ~g~Wild ~b~Stunt ~w~Mania", 1500, 1);
ApplyAnimation(playerid,"KISSING","BD_GF_Wave",4.1,0,1,1,1,1);
PlayerPlaySound(playerid, 1068, -1121.076, -1191.143, 15);
ShowPlayerDialog(playerid,WELCOME,DIALOG_STYLE_MSGBOX,"Hello! and Welcome ",".::: Server Rules :::.\nIf you want to stay in server please read these RULES:\nDont Spam\nNo RACISM\nDont SWEAR with anybody\nNo Hacking Allowed\nThis server is not for Noob Players\nDont Flame anybody\nBe an Good Person\nRespect Players and Admins\nBe wise!! Accepting is Good! Deny is Bad!","Decline","Accept");
if(gPlayerHasCitySelected[playerid]) {
ClassSel_SetupCharSelection(playerid);
return 1;
} else {
if(GetPlayerState(playerid) != PLAYER_STATE_SPECTATING) {
TogglePlayerSpectating(playerid,1);
TextDrawShowForPlayer(playerid, txtClassSelHelper);
gPlayerCitySelection[playerid] = -1;
}
}
return 1;
}