Szerző Téma: Swat bejárat gond  (Megtekintve 889 alkalommal)

Swat bejárat gond
« Dátum: 2013. Május 25. - 19:04:06 »
0 Show voters
Sziasztok az a gondom hogy a Pickup ot kiadja de nem birok bemenni ? ez mitõl lehet tudomásom szerint én vagyok az ügyetlen hozzá  :wall:
 
AddStaticPickup(1272, 1, 1083.0114,-1226.5907,15.8203); //SWAT Gang HQ PICKUP
if(PlayerToPointStripped(1, playerid, 1083.0114,-1226.5907,15.8203,73.8689, cx,cy,cz))
{//S.W.A.T be
{
GameTextForPlayer(playerid, \"~w~S.W.A.T Központ\", 5000, 1);
SetPlayerInterior(playerid, 5);
SetPlayerPos(playerid,-1226.5907,15.8203,73.8689);
PlayerInfo[playerid][pInt] = 5;
}
}
else if(PlayerToPointStripped(1, playerid, 1083.0114,-1226.5907,15.8203,73.8689, cx,cy,cz))
{//swat ki
//GameTextForPlayer(playerid, \"~w~Los Santos\", 5000, 1);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,-690.9606,939.6362,13.6328);
PlayerInfo[playerid][pInt] = 0;

Swat bejárat gond
« Válasz #1 Dátum: 2013. Május 27. - 21:26:03 »
0 Show voters

Swat bejárat gond
« Válasz #2 Dátum: 2013. Június 08. - 01:48:20 »
0 Show voters

Ezt csináld meg.

Nem tudom szándékosan vagy csak véletlen de mind a 2 helyre ugyanonnan lehet menni!

 
 
//Eleje
new swatbe;
new swatki
//GameModeInit alá
swatbe = CreatePickup(1272, 1, 1083.0114,-1226.5907,15.8203); //S.W.A.T. Gang Exterior PICKUP
swatki = CreatePickup(1272, 1, 1083.0114,-1226.5907,15.8203);//S.W.A.T. Gang Interior PICKUP
//OnPlayerPickUpPickupba
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == swatbe)
       {
GameTextForPlayer(playerid, \"~w~S.W.A.T Központ\", 5000, 1);
SetPlayerInterior(playerid, 5);
SetPlayerPos(playerid,-1226.5907,15.8203,73.8689);
PlayerInfo[playerid][pInt] = 5;
}
if(pickupid == swatki)
       {
//GameTextForPlayer(playerid, \"~w~Los Santos\", 5000, 1);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,-690.9606,939.6362,13.6328);
PlayerInfo[playerid][pInt] = 0;
}
    return 1;
}

Nem elérhető kos

  • 292
    • Profil megtekintése
Swat bejárat gond
« Válasz #3 Dátum: 2013. Június 11. - 22:10:19 »
0 Show voters
Szerintem meg úgy is mûködne, hogy kiveszi a cx, cy, cz részt mert ott vannak már koordináták.......... :wall:

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal