ich möchte das wenn man in den Kegel 1559 geht geportet wird es gibt 4 solcher Kegel....
aber irrgendwie passiert nie das man geportet wird
Code
new ggarage1;
new ggarage2;
new ggarage3;
new ggarage4;
ggarage1 = CreatePickup(1559,23,2270.4641,1642.0199,1084.2344);
ggarage2 = CreatePickup(1559,23,1989.4497,1799.7743,11.9883);
ggarage3 = CreatePickup(1559,23,1900.3737,1931.6483,7.5946);
ggarage4 = CreatePickup(1559,23,2270.4641,1652.4430,1084.2344);
public OnPlayerPickUpPickup(playerid,pickupid)
{
if(pickupid == ggarage1)
{if(PlayerInfo[playerid][pMember]==13||PlayerInfo[playerid][pLeader]==13||PlayerInfo[playerid][pboaccept]==1){SetTimer("garage1",5000,false);}
}
else if(pickupid == ggarage2)
{if(PlayerInfo[playerid][pMember]==13||PlayerInfo[playerid][pLeader]==13||PlayerInfo[playerid][pboaccept]==1){SetTimer("garage2",5000,false);}
}
else if(pickupid == ggarage3)
{if(PlayerInfo[playerid][pMember]==13||PlayerInfo[playerid][pLeader]==13||PlayerInfo[playerid][pboaccept]==1){SetTimer("garage3",5000,false);}
}
else if(pickupid == ggarage4)
{
if(PlayerInfo[playerid][pMember]==13||PlayerInfo[playerid][pLeader]==13||PlayerInfo[playerid][pboaccept]==1){SetTimer("garage4",5000,false);}
}
return 1;
}
public garage1 (playerid)
{
if(PlayerToPoint(playerid,5.0,2270.4641,1642.0199,1084.2344))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1900.3737,1935.6483,7.5946 );
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}return 1;
}
public garage2 (playerid)
{
if(PlayerToPoint(playerid,5.0,1989.4497,1799.7743,11.9883))
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 2266.1765,1652.4430,1084.2344 );
SetPlayerInterior(playerid,1);
PlayerInfo[playerid][pInt] = 1;
}return 1;
}
public garage3(playerid)
{
if(PlayerToPoint(playerid,5.0,1900.3737,1931.6483,7.5946))
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 2266.4641,1642.0199,1084.2344 );
SetPlayerInterior(playerid,1);
PlayerInfo[playerid][pInt] = 1;
}return 1;
}
public garage4(playerid)
{
if(PlayerToPoint(playerid,5.0,2271.1765,1652.4430,1084.2344))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1983.4497,1799.7743,11.9883);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}return 1;
}
Alles anzeigen
Könnt ihr mir helfen?