30.12.2010, 01:13
with dialogs i want create a "Next Page"
it's here
and this
and -
plz help!
pawn Код:
if(dialogid == DIALOGID_TELES)
{
if(!response) return ShowPlayerDialog(playerid, DIALOGID_TELES, DIALOG_STYLE_LIST, ""COL_D1"Teleports", ""COL_D2"Stuntzones\n"COL_D3"Jumps\n"COL_D2"Fun Maps\n"COL_D3"Races\n"COL_D2"Misc\n"COL_D3"Deathmatches\n"COL_D2"Tuning locations", "Select", "Cancel");
{
if(listitem == 0) // Stuntzones
{
ShowPlayerDialog(playerid, DIALOGID_TELES+1, DIALOG_STYLE_LIST, ""COL_D1"Teleports/Stuntzones", "Las Venturas\nSan Fierro\nAbadoned Airport\nLos Santos Airport\nSan Fierro Airport\nMount Chilliad\nHoover Dam\nBoats\nBeach", "Teleport", "Cancel");
}
if(listitem == 1) // Jumps
{
ShowPlayerDialog(playerid, DIALOGID_TELES+2, DIALOG_STYLE_LIST, ""COL_D1"Teleports/Jumps", ""COL_D5"Base jump\n"COL_D4"Tunnel jump\n"COL_D5"Mount Chilliad Jump\n"COL_D4"Huge Jump\n"COL_D5"Mega Jump\n"COL_D4"Building Jump\n"COL_D5"Big Jump\n"COL_D4"Abadoned Airport Jump\n"COL_D5"San Fierro Jump\n"COL_D4"Bike Jump\n"COL_D5"Glass Jump\n"COL_D4"Water Jump\n"COL_D5"Mine Jump\n"COL_D4"Pipe Jump", "Teleport", "Cancel");
}
if(listitem == 2) // Fun Maps
{
ShowPlayerDialog(playerid, DIALOGID_TELES+3, DIALOG_STYLE_LIST, ""COL_D1"Teleports/Fun Maps", ""COL_D4"Trampoline\n"COL_D5"Bike Fun\n"COL_D4"Sky Kine Couster\n"COL_D5"Disney Land\n"COL_D4"Tug Fun\n"COL_D5"Monster Farm\n"COL_D4"Monster Challenge\n"COL_D5"BMX Challenge\nCar Sumo\nHP\nBowl\n>> Next Page","Teleport","Cancel", ShowPlayerDialog(playerid, DIALOGID_TELES+3, DIALOG_STYLE_LIST, "NRG-500 Bowl\nLong Falling\nGoing Down\nDrop\nBBC\nWallride\nSlide\nXtreme Slide\nLoop\nPipe\nNRG-500\nBike Skills\nSkatepark\nBall\nSpiral<< Previous Page","Teleport", "Cancel");
}
if(listitem == 3) // Races
{
ShowPlayerDialog(playerid, DIALOGID_TELES+4, DIALOG_STYLE_LIST, ""COL_D1"Teleports/Races", ""COL_D5"Las Venturas Drift\n"COL_D4"San Fierro Drift\n"COL_D5"Hospital Drift\n"COL_D4"Las Venturas Airport\n"COL_D5"NRG-500 Race\n"COL_D4"Racemap\n"COL_D5"Kart Track", "Teleport", "Cancel");
}
if(listitem == 4) // Misc
{
ShowPlayerDialog(playerid, DIALOGID_TELES+5, DIALOG_STYLE_LIST, ""COL_D1"Teleports/Misc", ""COL_D4"Wang Cars\n"COL_D5"Otto's Cars\n"COL_D4"Andro\n"COL_D5"Truckstop\n"COL_D4"Eiffel Tower\n"COL_D5"Ufo Bar\n"COL_D4"Hippy\n"COL_D5"Jailisland\n"COL_D4"Grotto", "Teleport", "Cancel");
}
if(listitem == 5) // Deathmatches
{
ShowPlayerDialog(playerid, DIALOGID_TELES+6, DIALOG_STYLE_LIST, ""COL_D1"Teleports/Deathmatches", ""COL_D6"War Deathmatch\n"COL_D7"Minigun Deathmatch\n"COL_D6"Rocket Deathmatch\n"COL_D7"Under Water Deathmatch", "Teleport", "Cancel");
}
if(listitem == 6) // Tuning Locations
{
ShowPlayerDialog(playerid, DIALOGID_TELES+7, DIALOG_STYLE_LIST, ""COL_D1"Teleports/Tuning locations", ""COL_D4"TransFender\n"COL_D5"Wheel Arch Angels\n"COL_D4"Loco Low Co\n"COL_D5"Pay N Spray", "Teleport", "Cancel");
}
}
return 1;
}
pawn Код:
if(listitem == 2) // Fun Maps
{
ShowPlayerDialog(playerid, DIALOGID_TELES+3, DIALOG_STYLE_LIST, ""COL_D1"Teleports/Fun Maps", ""COL_D4"Trampoline\n"COL_D5"Bike Fun\n"COL_D4"Sky Kine Couster\n"COL_D5"Disney Land\n"COL_D4"Tug Fun\n"COL_D5"Monster Farm\n"COL_D4"Monster Challenge\n"COL_D5"BMX Challenge\nCar Sumo\nHP\nBowl\n>> Next Page","Teleport","Cancel");
}
pawn Код:
ShowPlayerDialog(playerid, DIALOGID_TELES+3, DIALOG_STYLE_LIST, "NRG-500 Bowl\nLong Falling\nGoing Down\nDrop\nBBC\nWallride\nSlide\nXtreme Slide\nLoop\nPipe\nNRG-500\nBike Skills\nSkatepark\nBall\nSpiral\n<< Previous Page","Teleport", "Cancel");
pawn Код:
if(dialogid == DIALOGID_TELES+3) // Fun Maps
{
if(response)
{
if(listitem == 0)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to Trampoline [/tr]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),-11.701, 1637.869, 300.097);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,-11.701, 1637.869, 300.097);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,-11.701, 1637.869, 300.097);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
if(listitem == 1)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to Bikefun [/bikefun]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),2583.765, -2040.131, 10.770);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,2583.765, -2040.131, 10.770);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,2583.765, -2040.131, 10.770);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
if(listitem == 2)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to Sky Kine Couster [/skc]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),2491.7136, -1697.5417, 714.4252);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,2491.7136, -1697.5417, 714.4252);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,2491.7136, -1697.5417, 714.4252);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
if(listitem == 3)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to Disney Land [/disney]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),-13.2725, 172.6878, 1.8547);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,-13.2725, 172.6878, 1.8547);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,-13.2725, 172.6878, 1.8547);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
if(listitem == 4)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to Tugfun [/tugfun]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),2774.316, -1309.180, 4316.250);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,2774.316, -1309.180, 4316.250);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,2774.316, -1309.180, 4316.250);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
if(listitem == 5)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to Monster Farm [/monster]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),-1213.097, -1044.866, 129.232);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,-1213.097, -1044.866, 129.232);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,-1213.097, -1044.866, 129.232);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
if(listitem == 6)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to Monster Challenge [/monsterchallenge]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),273.3446, 141.1441, 2.5999);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,273.3446, 141.1441, 2.5999);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,273.3446, 141.1441, 2.5999);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
}
if(listitem == 7)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to BMX Challenge [/bmx]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),3362.586, -1939.724, 43.027);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,3362.586, -1939.724, 43.027);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,3362.586, -1939.724, 43.027);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
if(listitem == 8)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to Carsumo [/carsumo]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),3638.867, 1179.233, 10.214);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,3638.867, 1179.233, 10.214);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,3638.867, 1179.233, 10.214);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
if(listitem == 9)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to HP [/hp]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),2864.5581, -1962.6754, 11.1094);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,2864.5581, -1962.6754, 11.1094);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,2864.5581, -1962.6754, 11.1094);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
if(listitem == 10)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to Bowl [/bowl]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),-441.068, -2662.415, 153.749);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,-441.068, -2662.415, 153.749);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,-441.068, -2662.415, 153.749);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
if(listitem == 11)
{
// Do i need put code in here ? (>> Next Page)
}
if(listitem == 12)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to NRG-500 Bowl [/nrgbowl]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),1086.436, 1070.662, 67.528);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,1086.436, 1070.662, 67.528);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,1086.436, 1070.662, 67.528);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
if(listitem == 13)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to Long Falling [/lf]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),4200.100, 1887.775, 2836.750);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,4200.100, 1887.775, 2836.750);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,4200.100, 1887.775, 2836.750);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
if(listitem == 14)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to Going Down [/gd]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),162.0734, -3795.5088, 21740.1270);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,162.0734, -3795.5088, 21740.1270);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,162.0734, -3795.5088, 21740.1270);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
if(listitem == 15)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to Drop [/drop]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),309.7934, 5461.4546, 3426.6863);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,309.7934, 5461.4546, 3426.6863);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,309.7934, 5461.4546, 3426.6863);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
if(listitem == 16)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to BCC [/bcc]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),1699.436, 2874.827, 135.612);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,1699.436, 2874.827, 135.612);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,1699.436, 2874.827, 135.612);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
if(listitem == 17)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to Wallride [/wallride]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),-817.0252, 1811.9648, 7.0000);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,-817.0252, 1811.9648, 7.0000);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,-817.0252, 1811.9648, 7.0000);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
if(listitem == 18)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to Slide [/slide]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),1572.9949, -1238.7869, 277.7445);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,1572.9949, -1238.7869, 277.7445);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,1572.9949, -1238.7869, 277.7445);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
if(listitem == 19)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to Xtreme Slide [/xslide]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),1862.760, 1337.315, 55.933);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,1862.760, 1337.315, 55.933);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,1862.760, 1337.315, 55.933);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
if(listitem == 20)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to Loop [/loop]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),2718.0352,-1152.3839,50.7140);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,2718.0352,-1152.3839,50.7140);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,2718.0352,-1152.3839,50.7140);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
if(listitem == 21)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to Pipe [/pipe]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),-126.624, -1681.854, 1577.256);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,-126.624, -1681.854, 1577.256);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,-126.624, -1681.854, 1577.256);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
if(listitem == 22)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to NRG-500 Parkour [/nrgp]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
SetPlayerPos(playerid,2471.6729,-1410.8246,34.5681);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
}
}
if(listitem == 23)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to Bikeskills [/bikeskills]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),-2863.0432, 429.0695, 4.5000);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,-2863.0432, 429.0695, 4.5000);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,-2863.0432, 429.0695, 4.5000);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
if(listitem == 24)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to LS Skatepark [/skatepark]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),1907.542, -1354.829, 13.103);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,1907.542, -1354.829, 13.103);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,1907.542, -1354.829, 13.103);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
if(listitem == 25)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to Ball [/ball]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),-2905.1711, 466.0886, 7.4236);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,-2905.1711, 466.0886, 7.4236);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,-2905.1711, 466.0886, 7.4236);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
}
if(listitem == 26)
{
new pName[MAX_PLAYER_NAME], string[180];
if(WarZone[playerid] == 1) return SendClientMessage(playerid,TELEWARN, "ERROR: You can't use this command in DM Zone");
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""COL_LL":: "COL_LP"%s "COL_LG" has gone to Spiral [/spiral]",pName);
SendClientMessageToAll(COLOR_TELEPORT,string);
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),24.8275, 278.3997, 1199.8948);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,24.8275, 278.3997, 1199.8948);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,24.8275, 278.3997, 1199.8948);
SetPlayerFacingAngle(playerid, 270.4951);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
if(listitem ==27)
{
// Do i need put code in here ? (<< Previous Page)
}
}
return 1;
}