31.10.2010, 19:56
aca lo tienes
FUENTE: Yo xDD
Код:
//----------------------------------[Comandos de Ciudades]---------------------------------- if(strcmp(cmd, "/ciudades", true) == 0) { SendClientMessage(playerid, COLOR_VERDE, "|============================================================================|"); SendClientMessage(playerid, COLOR_BLANCO," /ls, /sf, /lv "); SendClientMessage(playerid, COLOR_VERDE, "|============================================================================|"); return 1; } if(strcmp(cmd, "/ls", true) == 0) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), 1486.61, -1738.65, 13.55); SetVehicleZAngle(GetPlayerVehicleID(playerid), 266.6323); LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0); } else { SetPlayerPos(playerid, 1486.61, -1738.65, 13.55); } TogglePlayerControllable(playerid, 1); SetPlayerInterior(playerid, 0); ResetPlayerWeapons(playerid); GetPlayerName(playerid, sendername, sizeof(sendername)); new string[256]; format(string, sizeof(string), "Ў%s ha decidido ir a la ciudad! (/ls)", sendername); SendClientMessageToAll(COLOR_VERDE_CLARO, string); return 1; } if(strcmp(cmd, "/sf", true) == 0) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), -1501.70, 920.28, 7.19); SetVehicleZAngle(GetPlayerVehicleID(playerid), 266.6323); LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0); } else { SetPlayerPos(playerid, -1501.70, 920.28, 7.19); } TogglePlayerControllable(playerid, 1); SetPlayerInterior(playerid, 0); ResetPlayerWeapons(playerid); GetPlayerName(playerid, sendername, sizeof(sendername)); new string[256]; format(string, sizeof(string), "Ў%s ha decidido ir a la ciudad! (/sf)", sendername); SendClientMessageToAll(COLOR_VERDE_CLARO, string); return 1; } if(strcmp(cmd, "/lv", true) == 0) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), 2003.02, 1542.94, 13.59); SetVehicleZAngle(GetPlayerVehicleID(playerid), 266.6323); LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0); } else { SetPlayerPos(playerid, 2003.02, 1542.94, 13.59); } TogglePlayerControllable(playerid, 1); SetPlayerInterior(playerid, 0); ResetPlayerWeapons(playerid); GetPlayerName(playerid, sendername, sizeof(sendername)); new string[256]; format(string, sizeof(string), "Ў%s ha decidido ir a la ciudad! (/lv)", sendername); SendClientMessageToAll(COLOR_VERDE_CLARO, string); return 1; }