Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:gotojob(playerid, params[])
- {
- if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
- if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_LIGHTGREEN3, AdminOnly);
- new id;
- if(sscanf(params, "i", id)) return SendClientMessage(playerid, COLOR_GREY, "Scrie: /gotojob [job id]");
- if(id < 0 || id > 13) return SendClientMessage(playerid, COLOR_GREY, "Invalid job id");
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 0);
- new string[180];
- format(string, sizeof(string), "%s used /gotojob %d (%s).", GetName(playerid), id, JobInfo[id][jName]);
- ABroadCast(COLOR_ADMCOMMANDS, string, 1);
- if(id == 1)
- {
- SetPlayerPos(playerid, 1366.9601,-1292.1105,13.5469);
- SetPlayerInterior(playerid, 0);
- SCM(playerid, COLOR_GREY, "You has been teleported");
- }
- else if(id == 2)
- {
- SetPlayerPos(playerid, 2129.9590,-1700.0682,15.0784);
- SetPlayerInterior(playerid, 0);
- SCM(playerid, COLOR_GREY, "You has been teleported");
- }
- else if(id == 3)
- {
- SetPlayerPos(playerid, -366.4417,-1412.7061,25.7266);
- SetPlayerInterior(playerid, 0);
- SCM(playerid, COLOR_GREY, "You has been teleported");
- }
- else if(id == 4)
- {
- SetPlayerPos(playerid, 1653.6558,-2238.0095,13.5201);
- SetPlayerInterior(playerid, 0);
- SCM(playerid, COLOR_GREY, "You has been teleported");
- }
- else if(id == 5)
- {
- SetPlayerPos(playerid, 2510.2173,2794.8362,10.8203);
- SetPlayerInterior(playerid, 0);
- SCM(playerid, COLOR_GREY, "You has been teleported");
- }
- else if(id == 6)
- {
- SetPlayerPos(playerid, 607.8508,-1438.1113,14.0647);
- SetPlayerInterior(playerid, 0);
- SCM(playerid, COLOR_GREY, "You has been teleported");
- }
- else if(id == 7)
- {
- SetPlayerPos(playerid, 2849.8909,891.6392,10.7500);
- SetPlayerInterior(playerid, 0);
- SCM(playerid, COLOR_GREY, "You has been teleported");
- }
- else if(id == 8)
- {
- SetPlayerPos(playerid, 1621.0037,2210.8643,15.1959);
- SetPlayerInterior(playerid, 0);
- SCM(playerid, COLOR_GREY, "You has been teleported");
- }
- else if(id == 9)
- {
- SetPlayerPos(playerid, 2120.0132,-1786.2161,13.5608);
- SetPlayerInterior(playerid, 0);
- SCM(playerid, COLOR_GREY, "You has been teleported");
- }
- else if(id == 10)
- {
- SetPlayerPos(playerid, 372.0800,-2086.0505,7.8359);
- SetPlayerInterior(playerid, 0);
- SCM(playerid, COLOR_GREY, "You has been teleported");
- }
- else if(id == 11)
- {
- SetPlayerPos(playerid, 2000.5967,1568.3157,15.3672);
- SetPlayerInterior(playerid, 0);
- SCM(playerid, COLOR_GREY, "You has been teleported");
- }
- else if(id == 12)
- {
- SetPlayerPos(playerid, -76.8129,-1136.6630,1.0781);
- SetPlayerInterior(playerid, 0);
- SCM(playerid, COLOR_GREY, "You has been teleported");
- }
- else if(id == 13)
- {
- SetPlayerPos(playerid, -88.9780,-1564.3032,3.0043);
- SetPlayerInterior(playerid, 0);
- SCM(playerid, COLOR_GREY, "You has been teleported");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement