Szerző Téma: Ott Spawn ahol kilép  (Megtekintve 618 alkalommal)

Ott Spawn ahol kilép
« Dátum: 2010. December 18. - 12:19:42 »
0 Show voters
Szóval ahoz kellene segítésg hogy van egy modom amibe ha mondjuk rendõr vagy akkor rendõr HQ-n spawnolsz,És úgy kéne nekem hogy ahol kilép ott spawnoljon.
« Utoljára szerkesztve: 2010. December 18. - 12:21:18 írta cosmos »

Nem elérhető Iceaac

  • 2187
    • Profil megtekintése
Ott Spawn ahol kilép
« Válasz #1 Dátum: 2010. December 18. - 12:34:55 »
0 Show voters
Keress, van ilyen, nem is egy.

Nem elérhető nyE

  • 1745
    • Profil megtekintése
Ott Spawn ahol kilép
« Válasz #2 Dátum: 2010. December 18. - 12:41:15 »
0 Show voters
#include <Dini>
#include <dudb>
new Float:positionx;
new Float:positiony;
new Float:positionz;
public OnPlayerConnect(playerid)
{
LoadStats(playerid);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new Float:x;
new Float:y;
new Float:z;
GetPlayerPos(playerid,x,y,z);
positionx = x;
positiony = y;
positionz = z;
if (!dini_Exists(FileStats(playerid)))
{
dini_Create(FileStats(playerid));
}
SaveStats(playerid);
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid,positionx,positiony,positionz);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerPos(playerid,1182.7733,-1323.6193,13.5785);
positionx = 1182.7733;
positiony = -1323.6193;
positionz = 13.5785;
return 1;
}
Player(playerid)
{
new player[MAX_PLAYER_NAME];
GetPlayerName(playerid, player, sizeof(player));
return player;
}
FileStats(playerid)
{
  new a[256]; format(a, sizeof(a), \"%s.ini\",udb_encode(Player(playerid)));
  return a;
}
SaveStats(playerid)
{
  dini_IntSet(FileStats(playerid), \"PositionX\", floatround(positionx));
  dini_IntSet(FileStats(playerid), \"PositionY\", floatround(positiony));
  dini_IntSet(FileStats(playerid), \"PositionZ\", floatround(positionz));
}
LoadStats(playerid)
{
  positionx = dini_Int(FileStats(playerid), \"PositionX\");
  positiony = dini_Int(FileStats(playerid), \"PositionY\");
  positionz = dini_Int(FileStats(playerid), \"PositionZ\");
}

Ott Spawn ahol kilép
« Válasz #3 Dátum: 2010. December 18. - 14:15:14 »
0 Show voters
Antonyo küldtem egy üzenetet (emailra) Kérlek nézd meg.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal