Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerRequestClass(playerid, classid)
- {
- //-----------------
- PlayerPlaySound(playerid, 1067, 0.0, 0.0, 0.0);
- new RandomStart;
- new plname[MAX_PLAYER_NAME];
- new string[128];
- RandomStart = random(2);
- switch(RandomStart)
- {
- case 0:
- {
- InterpolateCameraPos(playerid, 1167.263549, -953.536621, 44.003799, 1238.583618, -933.317016, 41.953529, 10000, 1);
- InterpolateCameraLookAt(playerid, 1168.216918, -953.339111, 43.775718, 1242.507446, -932.542785, 41.891162, 10000, 1);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 1134.3859,-910.9868,62.9894);
- }
- case 1:
- {
- InterpolateCameraPos(playerid, 1291.788452, -807.976135, 88.962501, 1248.348632, -804.083923, 98.385025, 3000, 1);
- InterpolateCameraLookAt(playerid, 1291.308471, -808.819519, 89.203948, 1244.513427, -803.718261, 99.460784, 3000, 1);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 1134.3859,-910.9868,62.9894);
- }
- }
- //-----------------
- if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1 && IsPlayerNPC(playerid) !=1)
- {
- ClearChatbox(playerid, 20);
- if (gPlayerAccount[playerid] != 0)
- {
- new loginstring[512];
- new loginname[64];
- GetPlayerName(playerid,loginname,sizeof(loginname));
- TVOJOT DIALOG TUKA
- }
- else
- {
- gPlayerAccount[playerid] = 0;
- new regstring[512];
- new regname[64];
- GetPlayerName(playerid,regname,sizeof(regname));
- TVOJOT DIALOG TUKA
- }
- PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
- PlayerInfo[playerid][pModel] = Peds[classid][0];
- SetPlayerTeamFromClass(playerid,classid);
- }
- else SpawnPlayer(playerid);
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment