Szerző Téma: /enter /exit  (Megtekintve 1736 alkalommal)

Nem elérhető grove4l

  • 1545
    • Profil megtekintése
/enter /exit
« Dátum: 2010. Április 20. - 16:42:19 »
0
GTA Role PLay modba úgyvan hogy ha az épület ajtójához megyünk akkor magátol berak az épületbe
és olyan szeretnék hoy /enter-el be és /exit-el ki

/enter /exit
« Válasz #1 Dátum: 2010. Április 20. - 16:49:08 »
0
Eloszöris, kitörlöd vagy be /*-zed ezt a részt:
 
public CheckForWalkingTeleport(playerid)

 
Ami ebben a public CheckForWalkingTeleport(playerid)-ben van mindet...
Majd pedig létrehozol egy /enter és egy /exit parancsot. Tessék, most én egy ilyet találtam :D
 

if (strcmp(\"/enter\", cmdtext, true) == 0)
{
    if(IsPlayerConnected(playerid))
{
    SendClientMessage(playerid, COLOR_WHITE, \"Kilépéshez használd az /exit parancsot!\");
           if(PlayerToPoint(10.0, playerid, 927.2099,-1818.1908,13.3241 ))
    {
               SetPlayerInterior(playerid, 11);
          SetPlayerPos(playerid, 501.980987,-69.150199,998.757812);
          SendClientMessage(playerid, COLOR_WHITE, \"Köszöntelek a Bárban!\");
   }
}
return 1;
}
if (strcmp(\"/exit\", cmdtext, true) == 0)
{
    if(IsPlayerConnected(playerid))
{
   if(PlayerToPoint(10.0, playerid, 501.980987,-69.150199,998.757812))
    {
               SetPlayerInterior(playerid, 0);
          SetPlayerPos(playerid, 927.2099,-1818.1908,13.3241);
          SendClientMessage(playerid, COLOR_WHITE, \"Gyere máskor is!\");
   }
}
return 1;
}

 
Szerintem muködnie kellene.... :)
Bocsi, de sz*rul tette be a kódot :/
« Utoljára szerkesztve: 2010. Április 20. - 16:51:28 írta szileni »

Nem elérhető grove4l

  • 1545
    • Profil megtekintése
/enter /exit
« Válasz #2 Dátum: 2010. Április 20. - 17:00:53 »
0
Idézetet írta: grove4l date=1271775616\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"1448\" data-ipsquote-contentclass=\"forums_Topic
public CheckForWalkingTeleport(playerid)
ebböl 1 DB volt és alatta a teleportok most mindegyikhez másoljam be a /enter /exit-et?
ugyanis több mint 100 teleport van
 only put teleports ON FOOT here, use another function for vehicle ones - luk0r
/*
 *  HOW TO USE THIS FUNCTION:
 *
 *  Just use your normal PlayerToPoint functions but make them use PlayerToPointStripped instead.
 *  Use the arguments cx,cy,cz at the end of each call (look at the others for an example).
 *
 */
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
if(PlayerToPointStripped(1, playerid,1554.9537,-1675.6584,16.1953, cx,cy,cz))
{//LSPD Entrance
   GameTextForPlayer(playerid, \"~w~Police Department\", 5000, 1);
   SetPlayerInterior(playerid, 6);
   SetPlayerPos(playerid,246.7079,66.2239,1003.6406);
   PlayerInfo[playerid][pInt] = 6;
}
else if(PlayerToPointStripped(1, playerid,246.5325,62.4251,1003.6406, cx,cy,cz))
{//LSPD Exit
   GameTextForPlayer(playerid, \"~w~Los Santos\", 5000, 1);
   SetPlayerInterior(playerid, 0);
   SetPlayerPos(playerid,1552.3231,-1674.6780,16.1953);
   PlayerInfo[playerid][pInt] = 0;
}
else if (PlayerToPointStripped(1.0, playerid,488.2531,-82.7632,998.7578, cx,cy,cz))
{
   //Misty/10 Green Toilets
   SetPlayerPos(playerid,2277.5942,-1139.8883,1050.8984);
   GameTextForPlayer(playerid, \"~w~Restroom\", 5000, 3);
   SetPlayerInterior(playerid,11);
   PlayerInfo[playerid][pInt] = 11;
}
 

Nem elérhető grove4l

  • 1545
    • Profil megtekintése
/enter /exit
« Válasz #3 Dátum: 2010. Április 20. - 17:01:45 »
0
ezt hogy oldjam meg hogy csak egyszer keljen beleraknom a parancsot?

GroX

  • Vendég
/enter /exit
« Válasz #4 Dátum: 2010. Április 20. - 19:12:47 »
0
Ott van a gl_property include... egyszeruen létrehozhatsz vele bizniszt + sima házt is és csak 1szer meg van írva benne az /enter parancs nem kell neked megírnod csak egyszeruen létrehozod az ingatlan(okat)t, és a többi már magától megy.

Nem elérhető grove4l

  • 1545
    • Profil megtekintése
/enter /exit
« Válasz #5 Dátum: 2010. Április 20. - 20:29:02 »
0
de nekem nincs ilyen fájl

/enter /exit
« Válasz #6 Dátum: 2010. Április 20. - 20:32:43 »
0
0.3a-ban van alapból

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal