23.04.2009, 22:55
Code:
http://pastebin.ca/1401410
Or:
I have 2 spawnpoints, but its not working. I still fall down from the sky.
http://pastebin.ca/1401410
Or:
Код:
#include <a_samp> #include <xStreamer> #define MIN_AREA -4000.0 // map is -3000, but allow for maps over the sea #define MAX_AREA 4000.0 #define AREA_SIZE 100.0 // This means only objects within a 300.0 by 300.0 square around the player are checked. //Forwards forward Message(); forward SetPlayerRandomSpawn(playerid); //New new RandomMessages[][] = { "Server: Austa kaasmдngijaid ja administraatoreid!", "Server: Kхikide kдskude nдgemiseks kirjuta /Abi", "Server: Koodide kasutamine on keelatud ja karistatav eluaegse bдnniga."}; new Float:gRandomPlayerSpawns[2][3] = { //5 SPAWN KOHTA JA KOLMEKOHALINE, EHK SIIS x, y ja z. {408.2873,2456.5493,16.5000}, {1525.6218,-2433.2993,13.5547} }; new gSkins[] = { 59, 60, 66, 56, 93, 95, 100, 97, 111, 115, 137 // Skinnid. }; public OnGameModeInit() { SetGameModeText("xGames"); SetTimer("Message", 1000*180, 1); // 180 sekundit return 1; } public SetPlayerRandomSpawn(playerid) { new rand = random(sizeof(gRandomPlayerSpawns)); SetPlayerPos(playerid, gRandomPlayerSpawns[rand][0], gRandomPlayerSpawns[rand][1], gRandomPlayerSpawns[rand][2]); return 1; } public OnPlayerSpawn(playerid) { SetPlayerRandomSpawn(playerid); ResetPlayerWeapons(playerid); SetPlayerSkin(playerid, gSkins[random(sizeof(gSkins))]); return 1; } public Message() { SendClientMessageToAll(0x00FFFFFF, RandomMessages[random(sizeof(RandomMessages))]); return 1; }