pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if ( dialogid == DIALOG_TELES )
{
/* if second button pressed */
if ( !response ) return 1;
/* if first button pressed */
if ( response )
{
switch ( listitem )
{
case 0:
{
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, 1516.7515,-1656.8229,13.5392);
SetPlayerFacingAngle(playerid, 0.0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/ls) {00CCFF}%s {6666FF}has Teleported to Los Santos",pName);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, 1519.1354,-1566.0449,23.5469);
SetVehicleZAngle(veh, 0.0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/ls) {00CCFF}%s {6666FF}has Teleported to Los Santos",pName);
SendClientMessageToAll(playerid, string);
LinkVehicleToInterior(veh, 0);
SetVehicleVirtualWorld(veh, 0);
PutPlayerInVehicle(playerid, veh, 0);
}
return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Los Santos",2000,3);
}
case 1:
{
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, -1992.7402,148.8261,27.5391);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerInterior(playerid, 0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/sf) {00CCFF}%s {6666FF}has Teleported to San Fierro",pName);
SendClientMessageToAll(playerid, string);
SetPlayerVirtualWorld(playerid, 0);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, -1988.8854,186.4273,27.5391);
SetVehicleZAngle(veh, 0.0);
LinkVehicleToInterior(veh, 0);
SetVehicleVirtualWorld(veh, 0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/sf) {00CCFF}%s {6666FF}has Teleported to San Fierro",pName);
PutPlayerInVehicle(playerid, veh, 0);
SendClientMessageToAll(playerid, string);
}
return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~San Fiero",2000,3);
}
case 2:
{
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, 2104.1064,1430.4622,10.8203);
SetPlayerFacingAngle(playerid, 0.0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/lv) {00CCFF}%s {6666FF}has Teleported to Las Venturas",pName);
SetPlayerInterior(playerid, 0);
SendClientMessageToAll(playerid, string);
SetPlayerVirtualWorld(playerid, 0);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, 2166.4116,1435.4097,10.4106);
SetVehicleZAngle(veh, 0.0);
LinkVehicleToInterior(veh, 0);
SetVehicleVirtualWorld(veh, 0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/lv) {00CCFF}%s {6666FF}has Teleported to Las Venturas",pName);
PutPlayerInVehicle(playerid, veh, 0);
SendClientMessageToAll(playerid, string);
}
return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Las Venturas",2000,3);
}
case 3:
{
ShowPlayerDialog(playerid, DIALOG_TUNING1, DIALOG_STYLE_LIST, "Tuning Garages", "Los Santos Tuning (/lstune)\nLas Venturas Tuning (/lvtune)\nSan Fiero Tuning (/sftune)\nArch Wheel Angel Tuning (/arch)\nLoco Low Co Tuning (/loco)", "Choose", "Back");
}
case 4:
{
ShowPlayerDialog(playerid, DIALOG_AIRPORTS1, DIALOG_STYLE_LIST, "Airport Stunts", "Los Santos Airport Stunts (/lsa)\nLas Venturas Airport Stunts (/lva)\nSan Fiero Airport Stunts (/sfa)\nAbandoned Airport Stunts (/aa)", "Choose", "Back");
}
case 5:
{
ShowPlayerDialog(playerid, DIALOG_STUNTS1, DIALOG_STYLE_LIST, "Stunts", "Derby Mode (/derby)\nGo Kart (/kart)\nThe Funny Stunt /funstunt\nThe Super Pipe (/superpipe)\nMount Chilliad /mc\nStunt Park (/stuntpark)\nRace Track (/lsrace)\nQuarry Stunts (/qs)\nArea 69 (/as)\nLoop Race(/loop)\nSuper Race (/superrace)\nWater Slide(/ws)\nThe Bay Side (/bs)", "Choose", "Back");
}
case 6:
{
ShowPlayerDialog(playerid, DIALOG_DM, DIALOG_STYLE_LIST, "Deathmatch", "Glass Attack (/glass) \nCounter-Strike (/cs) \nMinigun Fight (/mini) \nRocket Mayhem (/rocket) \nOne Hit (/1hit)", "Choose", "Back");
}
}
}
}
if ( dialogid == DIALOG_DM )
{
/* if second button pressed */
if ( !response ) return ShowPlayerDialog(playerid, DIALOG_TELES, DIALOG_STYLE_LIST, "Teleports", "Los Santos (/ls) \nSan Fiero (/sf)\nLas Venturas (/lv)\nTuning \nAirports \nStunts", "Accept", "Cancel");
/* if first button pressed */
if ( response )
{
switch ( listitem )
{
case 0:
{
if(GetPVarInt(playerid, "CMDDisabled") == 1)
{
ShowPlayerDialog(playerid, DIALOG_EVADE, DIALOG_STYLE_MSGBOX, "Leave Menu", "You must Leave first before using this command", "Leave", "Cancel");
return 1;
}
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/glass) {00CCFF}%s {6666FF}has Teleported to Glass Attack",pName);
SendClientMessageToAll(playerid, string);
new Random = random(sizeof(RandomSpawnGlassDM));
SetPlayerPos(playerid, RandomSpawnGlassDM[Random][0], RandomSpawnGlassDM[Random][1], RandomSpawnGlassDM[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawnGlassDM[Random][3]);
pInEvent[playerid] = 1;
SetPVarInt(playerid, "CMDDisabled", 1); //I remove = cause it has error warning 215: expression has no effect
}
case 1:
{
if(GetPVarInt(playerid, "CMDDisabled") == 1)
{
ShowPlayerDialog(playerid, DIALOG_EVADE, DIALOG_STYLE_MSGBOX, "Leave Menu", "You must Leave first before using this command", "Leave", "Cancel");
return 1;
}
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/cs) {00CCFF}%s {6666FF}has Teleported to Counter-Strike",pName);
GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Counter-Strike",2000,3);
SetPlayerVirtualWorld(playerid, 2);
DestroyVehicle(GetPlayerVehicleID(playerid));
SendClientMessageToAll(playerid, string);
new Random = random(sizeof(RandomSpawnCsDM));
SetPlayerPos(playerid, RandomSpawnCsDM[Random][0], RandomSpawnCsDM[Random][1], RandomSpawnCsDM[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawnCsDM[Random][3]);
}
case 2:
{
if(GetPVarInt(playerid, "CMDDisabled") == 1)
{
ShowPlayerDialog(playerid, DIALOG_EVADE, DIALOG_STYLE_MSGBOX, "Leave Menu", "You must Leave first before using this command", "Leave", "Cancel");
return 1;
}
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/mini) {00CCFF}%s {6666FF}has Teleported to Minigun Deathmatch",pName);
SendClientMessageToAll(playerid, string);
GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Minigun Deathmatch",2000,3);
SetPlayerVirtualWorld(playerid, 3);
GivePlayerWeapon(playerid, 38, 50000);
DestroyVehicle(GetPlayerVehicleID(playerid));
new Random = random(sizeof(RandomSpawnMiniDM));
SetPlayerPos(playerid, RandomSpawnMiniDM[Random][0], RandomSpawnMiniDM[Random][1], RandomSpawnMiniDM[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawnMiniDM[Random][3]);
}
case 3:
{
if(GetPVarInt(playerid, "CMDDisabled") == 1)
{
ShowPlayerDialog(playerid, DIALOG_EVADE, DIALOG_STYLE_MSGBOX, "Leave Menu", "You must Leave first before using this command", "Leave", "Cancel");
return 1;
}
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/rocket) {00CCFF}%s {6666FF}has Teleported to Rocket Mayhem",pName);
SendClientMessageToAll(playerid, string);
GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Rocket Mayhem",2000,3);
SetPlayerVirtualWorld(playerid, 3);
DestroyVehicle(GetPlayerVehicleID(playerid));
new Random = random(sizeof(RandomSpawnRockDM));
SetPlayerPos(playerid, RandomSpawnRockDM[Random][0], RandomSpawnRockDM[Random][1], RandomSpawnRockDM[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawnRockDM[Random][3]);
}
case 4:
{
if(GetPVarInt(playerid, "CMDDisabled") == 1)
{
ShowPlayerDialog(playerid, DIALOG_EVADE, DIALOG_STYLE_MSGBOX, "Leave Menu", "You must Leave first before using this command", "Leave", "Cancel");
return 1;
}
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/1hit) {00CCFF}%s {6666FF}has Teleported to One Hit Pawned",pName);
SendClientMessageToAll(playerid, string);
GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~One Hit Pawned",2000,3);
SetPlayerVirtualWorld(playerid, 3);
SetPlayerHealth(playerid, 3);
SetPlayerArmour(playerid, 0);
DestroyVehicle(GetPlayerVehicleID(playerid));
new Random = random(sizeof(RandomSpawn1HitDM));
SetPlayerPos(playerid, RandomSpawn1HitDM[Random][0], RandomSpawn1HitDM[Random][1], RandomSpawn1HitDM[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawn1HitDM[Random][3]);
}
}
}
if ( dialogid == DIALOG_STUNTS1 )
{
/* if second button pressed */
if ( !response ) return ShowPlayerDialog(playerid, DIALOG_TELES, DIALOG_STYLE_LIST, "Teleports", "Los Santos (/ls) \nSan Fiero (/sf)\nLas Venturas (/lv)\nTuning\nAirports\nStunts", "Accept", "Cancel");
/* if first button pressed */
if ( response )
{
switch ( listitem )
{
case 0:
{
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, -1398.103515,937.631164,1036.479125);
SetPlayerFacingAngle(playerid, 0.0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/derby) {00CCFF}%s {6666FF}has Teleported to Ultimate Derby",pName);
SetPlayerInterior(playerid, 15);
SendClientMessageToAll(playerid, string);
SetPlayerVirtualWorld(playerid, 15);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, -1398.103515,937.631164,1036.479125);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/derby) {00CCFF}%s {6666FF}has Teleported to Ultimate Derby",pName);
SetVehicleZAngle(veh, 0.0);
LinkVehicleToInterior(veh, 15);
SendClientMessageToAll(playerid, string);
SetVehicleVirtualWorld(veh, 15);
PutPlayerInVehicle(playerid, veh, 0);
}
return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~The Derby",2000,3);
}
case 1:
{
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, -2928.0491,-649.3088,4.5297);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerInterior(playerid, 0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/kart) {00CCFF}%s {6666FF}has Teleported to Ultimate Kart Race",pName);
SetPlayerVirtualWorld(playerid, 0);
SendClientMessageToAll(playerid, string);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, -2928.0491,-649.3088,4.5297);
SetVehicleZAngle(veh, 0.0);
LinkVehicleToInterior(veh, 0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/kart) {00CCFF}%s {6666FF}has Teleported to Ultimate Kart Race",pName);
SetVehicleVirtualWorld(veh, 0);
SendClientMessageToAll(playerid, string);
PutPlayerInVehicle(playerid, veh, 0);
}
return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Kart Race",2000,3);
}
case 2:
{
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, 1073.1746,1267.1007,10.8281);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerInterior(playerid, 0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/funstunt) {00CCFF}%s {6666FF}has Teleported to Fun Stunt",pName);
SetPlayerVirtualWorld(playerid, 0);
SendClientMessageToAll(playerid, string);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, 1073.1746,1267.1007,10.8281);
SetVehicleZAngle(veh, 0.0);
LinkVehicleToInterior(veh, 0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/funstunt) {00CCFF}%s {6666FF}has Teleported to Fun Stunt",pName);
SendClientMessageToAll(playerid, string);
SetVehicleVirtualWorld(veh, 0);
PutPlayerInVehicle(playerid, veh, 0);
}
return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Fun Stunt",2000,3);
}
case 3:
{
SetPlayerPos(playerid, -1554.0211,-1078.7865,769.5139);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerInterior(playerid, 0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/superpipe) {00CCFF}%s {6666FF}has Teleported to Super Pipe",pName);
SendClientMessageToAll(playerid, string);
SetPlayerVirtualWorld(playerid, 0);
return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Super Pipe",2000,3);
}
case 4:
{
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, -2322.072265, -1651.324707, 483.420562);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerInterior(playerid, 0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/mc) {00CCFF}%s {6666FF}has Teleported to Mount Chilliad",pName);
SendClientMessageToAll(playerid, string);
SetPlayerVirtualWorld(playerid, 0);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, -2314.0161,-1628.3881,486.0627);
SetVehicleZAngle(veh, 0.0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/mc) {00CCFF}%s {6666FF}has Teleported to Mount Chilliad",pName);
SendClientMessageToAll(playerid, string);
LinkVehicleToInterior(veh, 0);
SetVehicleVirtualWorld(veh, 0);
PutPlayerInVehicle(playerid, veh, 0);
}
return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Mount Chilliad",2000,3);
}
case 5:
{
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, 873.5781,-2116.9656,4.7741);
SetPlayerFacingAngle(playerid, 0.0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/stuntpark) {00CCFF}%s {6666FF}has Teleported to Stunt Park",pName);
SetPlayerInterior(playerid, 0);
SendClientMessageToAll(playerid, string);
SetPlayerVirtualWorld(playerid, 0);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, 873.5781,-2116.9656,4.7741);
SetVehicleZAngle(veh, 0.0);
LinkVehicleToInterior(veh, 0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/stuntpark) {00CCFF}%s {6666FF}has Teleported to Stunt Park",pName);
SetVehicleVirtualWorld(veh, 0);
SendClientMessageToAll(playerid, string);
PutPlayerInVehicle(playerid, veh, 0);
}
return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Stunt Park",2000,3);
}
case 6:
{
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, 53.5172,-2095.3826,11.7887);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerInterior(playerid, 0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/lsrace) {00CCFF}%s {6666FF}has Teleported to Los Santos Race Track",pName);
SendClientMessageToAll(playerid, string);
SetPlayerVirtualWorld(playerid, 0);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, 53.5172,-2095.3826,11.7887);
SetVehicleZAngle(veh, 0.0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/lsrace) {00CCFF}%s {6666FF}has Teleported to Los Santos Race Track",pName);
LinkVehicleToInterior(veh, 0);
SetVehicleVirtualWorld(veh, 0);
SendClientMessageToAll(playerid, string);
PutPlayerInVehicle(playerid, veh, 0);
}
return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Race Track",2000,3);
}
case 7:
{
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, 1183.6688,739.8846,10.9028);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/qs) {00CCFF}%s {6666FF}has Teleported to The Quarry Stunts",pName);
SendClientMessageToAll(playerid, string);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, 1183.6688,739.8846,10.9028);
SetVehicleZAngle(veh, 0.0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/qs) {00CCFF}%s {6666FF}has Teleported to The Quarry Stunts",pName);
SendClientMessageToAll(playerid, string);
LinkVehicleToInterior(veh, 0);
SetVehicleVirtualWorld(veh, 0);
PutPlayerInVehicle(playerid, veh, 0);
}
return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Quarry Stunts",2000,3);
}
case 8:
{
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, 347.2199,2072.7920,17.6406);
SetPlayerFacingAngle(playerid, 0.0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/as) {00CCFF}%s {6666FF}has Teleported to The Area 69 Stunts",pName);
SendClientMessageToAll(playerid, string);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, 347.2199,2072.7920,17.6406);
SetVehicleZAngle(veh, 0.0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/as) {00CCFF}%s {6666FF}has Teleported to The Area 69 Stunts",pName);
SendClientMessageToAll(playerid, string);
LinkVehicleToInterior(veh, 0);
SetVehicleVirtualWorld(veh, 0);
PutPlayerInVehicle(playerid, veh, 0);
}
return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Area 69 Stunts",2000,3);
}
case 9:
{
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid,-2852.5603,2193.9573,175.1964);
SetPlayerFacingAngle(playerid, 0.0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/loop) {00CCFF}%s {6666FF}has Teleported to the Loop Stunt",pName);
SetPlayerInterior(playerid, 0);
SendClientMessageToAll(playerid, string);
SetPlayerVirtualWorld(playerid, 0);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, -2852.5603,2193.9573,175.1964);
SetVehicleZAngle(veh, 0.0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/loop) {00CCFF}%s {6666FF}has Teleported to the Loop Stunt",pName);
LinkVehicleToInterior(veh, 0);
SendClientMessageToAll(playerid, string);
SetVehicleVirtualWorld(veh, 0);
PutPlayerInVehicle(playerid, veh, 0);
}
return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Loop Stunt",2000,3);
}
case 10:
{
new cartype = GetPlayerVehicleID(playerid);
new State=GetPlayerState(playerid);
{
if(State!=PLAYER_STATE_DRIVER)
{
SetPlayerPos(playerid,445.5991,3240.7805,245.6453);
}
else if(IsPlayerInVehicle(playerid, cartype) == 1)
{
SetVehiclePos(cartype,445.5991,3240.7805,245.6453);
SetVehicleZAngle(cartype,30.6101);}
else
{
SetPlayerPos(playerid,445.5991,3240.7805,245.6453);
}
GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Super Race",2000,3);
}
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/superrace) {00CCFF}%s {6666FF}has Teleported to The Super Race",pName);
SendClientMessageToAll(playerid, string);
return 1;
}
case 11:
{
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/ws) {00CCFF}%s {6666FF}has Teleported to The Water Slide",pName);
SendClientMessageToAll(playerid, string);
new Random = random(sizeof(RandomSpawnWS));
SetPlayerPos(playerid, RandomSpawnWS[Random][0], RandomSpawnWS[Random][1], RandomSpawnWS[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawnWS[Random][3]);
}
case 12:
{
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, -2227.0630,2326.6521,7.5469);
SetPlayerFacingAngle(playerid, 0.0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/bs) {00CCFF}%s {6666FF}has Teleported to Bay Side Stunts",pName);
SendClientMessageToAll(playerid, string);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, -2227.0630,2326.6521,7.5469);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/bs) {00CCFF}%s {6666FF}has Teleported to Bay Side Stunts",pName);
SendClientMessageToAll(playerid, string);
SetVehicleZAngle(veh, 0.0);
LinkVehicleToInterior(veh, 0);
SetVehicleVirtualWorld(veh, 0);
PutPlayerInVehicle(playerid, veh, 0);
}
return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Bay Side Stunts",2000,3);
}
}
}
}
if ( dialogid == DIALOG_AIRPORTS1 )
{
/* if second button pressed */
if ( !response ) return ShowPlayerDialog(playerid, DIALOG_TELES, DIALOG_STYLE_LIST, "Teleports", "Los Santos (/ls) \nSan Fiero (/sf)\nLas Venturas (/lv)\nTuning\nAirports\nStunts", "Accept", "Cancel");
/* if first button pressed */
if ( response )
{
switch ( listitem )
{
case 0:
{
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, 2076.1628,-2625.0005,15.9424);
SetPlayerFacingAngle(playerid, 0.0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/lsa) {00CCFF}%s {6666FF}has Teleported to Los Santos Airport",pName);
SetPlayerInterior(playerid, 0);
SendClientMessageToAll(playerid, string);
SetPlayerVirtualWorld(playerid, 0);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, 2076.1628,-2625.0005,15.9424);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/lsa) {00CCFF}%s {6666FF}has Teleported to Los Santos Airport",pName);
SetVehicleZAngle(veh, 0.0);
SendClientMessageToAll(playerid, string);
LinkVehicleToInterior(veh, 0);
SetVehicleVirtualWorld(veh, 0);
PutPlayerInVehicle(playerid, veh, 0);
}
return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Los Santos Airport",2000,3);
}
case 1:
{
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, 1559.2078,1322.7371,13.2701);
SetPlayerFacingAngle(playerid, 0.0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/lva) {00CCFF}%s {6666FF}has Teleported to Las Venturas Airport",pName);
SendClientMessageToAll(playerid, string);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, 1559.2078,1322.7371,13.2701);
SetVehicleZAngle(veh, 0.0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/lva) {00CCFF}%s {6666FF}has Teleported to Las Venturas Airport",pName);
SendClientMessageToAll(playerid, string);
LinkVehicleToInterior(veh, 0);
SetVehicleVirtualWorld(veh, 0);
PutPlayerInVehicle(playerid, veh, 0);
}
return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Las Venturas Airport",2000,3);
}
case 2:
{
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, -1526.9530,-84.3569,16.5564);
SetPlayerFacingAngle(playerid, 0.0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/sfa) {00CCFF}%s {6666FF}has Teleported to San Fierro Airport",pName);
SendClientMessageToAll(playerid, string);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, -1526.9530,-84.3569,16.5564);
SetVehicleZAngle(veh, 0.0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/sfa) {00CCFF}%s {6666FF}has Teleported to San Fierro Airport",pName);
SendClientMessageToAll(playerid, string);
LinkVehicleToInterior(veh, 0);
SetVehicleVirtualWorld(veh, 0);
PutPlayerInVehicle(playerid, veh, 0);
}
return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~San Fierro Airport",2000,3);
}
case 3:
{
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, 380.9417,2544.7393,19.0013);
SetPlayerFacingAngle(playerid, 0.0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/aa) {00CCFF}%s {6666FF}has Teleported to Abandoned Airport",pName);
SendClientMessageToAll(playerid, string);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, 324.9668,2543.5974,16.4021);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/aa) {00CCFF}%s {6666FF}has Teleported to Abandoned Airport",pName);
SendClientMessageToAll(playerid, string);
SetVehicleZAngle(veh, 0.0);
LinkVehicleToInterior(veh, 0);
SetVehicleVirtualWorld(veh, 0);
PutPlayerInVehicle(playerid, veh, 0);
}
return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Abandoned Airport",2000,3);
}
}
}
}
if ( dialogid == DIALOG_TUNING1 ) // drift[1/3]
{
/* if second button pressed */
if ( !response ) return ShowPlayerDialog(playerid, DIALOG_TELES, DIALOG_STYLE_LIST, "Teleports", "Los Santos (/ls) \nSan Fiero (/sf)\nLas Venturas (/lv)\nTuning \nAirports \nStunts", "Accept", "Cancel");
/* if first button pressed */
if ( response )
{
switch ( listitem )
{
case 0:
{
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, 1040.8041,-1032.2076,32.0148);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/lstune) {00CCFF}%s {6666FF}has Teleported to Los Santos Tuning Garage",pName);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerInterior(playerid, 0);
SendClientMessageToAll(playerid, string);
SetPlayerVirtualWorld(playerid, 0);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, 1040.8041,-1032.2076,32.0148);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/lstune) {00CCFF}%s {6666FF}has Teleported to Los Santos Tuning Garage",pName);
SetVehicleZAngle(veh, 0.0);
SendClientMessageToAll(playerid, string);
LinkVehicleToInterior(veh, 0);
SetVehicleVirtualWorld(veh, 0);
PutPlayerInVehicle(playerid, veh, 0);
}
return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Los Santos Tuning",2000,3);
}
case 1:
{
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, 2385.0134,1030.7831,10.8203);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/lvtune) {00CCFF}%s {6666FF}has Teleported to Las Venturas Tuning Garage",pName);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerInterior(playerid, 0);
SendClientMessageToAll(playerid, string);
SetPlayerVirtualWorld(playerid, 0);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, 2385.0134,1030.7831,10.8203);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/lvtune) {00CCFF}%s {6666FF}has Teleported to Las Venturas Tuning Garage",pName);
SendClientMessageToAll(playerid, string);
SetVehicleZAngle(veh, 0.0);
LinkVehicleToInterior(veh, 0);
SetVehicleVirtualWorld(veh, 0);
PutPlayerInVehicle(playerid, veh, 0);
}
return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Las Venturas Tuning",2000,3);
}
case 2:
{
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, -1935.9169,234.4120,34.3125);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/sftune) {00CCFF}%s {6666FF}has Teleported to San Fierro Tuning Garage",pName);
SetPlayerFacingAngle(playerid, 0.0);
SendClientMessageToAll(playerid, string);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, -1935.9169,234.4120,34.3125);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/sftune) {00CCFF}%s {6666FF}has Teleported to San Fierro Tuning Garage",pName);
SetVehicleZAngle(veh, 0.0);
SendClientMessageToAll(playerid, string);
LinkVehicleToInterior(veh, 0);
SetVehicleVirtualWorld(veh, 0);
PutPlayerInVehicle(playerid, veh, 0);
}
return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~San Fierro Tuning",2000,3);
}
case 3:
{
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, -2706.3394,218.2382,4.1797);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/arch) {00CCFF}%s {6666FF}has Teleported to Wheel Arch Angels Tuning Garage",pName);
SendClientMessageToAll(playerid, string);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, -2706.3394,218.2382,4.1797)'
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/arch) {00CCFF}%s {6666FF}has Teleported to Wheel Arch Angels Tuning Garage",pName);
SetVehicleZAngle(veh, 0.0);
SendClientMessageToAll(playerid, string);
LinkVehicleToInterior(veh, 0);
SetVehicleVirtualWorld(veh, 0);
PutPlayerInVehicle(playerid, veh, 0);
}
return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Arch Tuning Garage",2000,3);
}
case 4:
{
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, 2644.9099,-2022.1721,13.5469);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/loco) {00CCFF}%s {6666FF}has Teleported to Loco Low Co Tuning Garage",pName);
SetPlayerFacingAngle(playerid, 0.0);
SendClientMessageToAll(playerid, string);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, 2644.9099,-2022.1721,13.5469);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/loco) {00CCFF}%s {6666FF}has Teleported to Loco Low Co Tuning Garage",pName);
SetVehicleZAngle(veh, 0.0);
SendClientMessageToAll(playerid, string);
LinkVehicleToInterior(veh, 0);
SetVehicleVirtualWorld(veh, 0);
PutPlayerInVehicle(playerid, veh, 0);
}
return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Loco Low Co Tuning",2000,3);
}
}
}
}
if(dialogid == DIALOG_EVADE)
{
if(response) // If they clicked 'Yes' or pressed enter
{
SetPlayerHealth(playerid, 0);
}
else // Pressed ESC or clicked cancel
{
}
return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText.
}
return 1;
}