06.10.2009, 16:05
SpawnChoice.inc
Hello I present a include that will allow 0.2x server for select your city and place of City to spawn is a beast that include all uses Menu System
and voila a small GM which I add the include
Code:
#include <a_samp> #include <SpawnChoice> main() { print("\n----------------------------------"); print(" SpawnChoice"); print("----------------------------------\n"); } public OnGameModeInit() { SpawnInit(); SetGameModeText("Blank Script"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } public OnPlayerConnect(playerid) { SpawnConnect(playerid); return 1; } public OnPlayerSpawn(playerid) { SpawnPlayerSpawn(playerid); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/changespawn", cmdtext, true) == 0) { SpawnChange(playerid); return 1; } return 0; } public OnPlayerSelectedMenuRow(playerid, row) { SpawnMenu(playerid,row); return 1; } public OnPlayerExitedMenu(playerid) { SpawnExitMenu(playerid); return 1; }