11.06.2011, 01:01
I want that if youre standing on a pickup and you use shift youll enter.
It doesnt work and I actually already knew that but I just tried. How should I do this?
Regards.
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
new keys, updown, leftright;
GetPlayerKeys(playerid, keys, updown, leftright);
if(keys == KEY_JUMP)
{
for(new i; i<MAX_INTERIORS; i++)
{
if(pickupid == PickupID[i])
{
SetPlayerPos(playerid, InteriorInfo[i][TeleX], InteriorInfo[i][TeleY], InteriorInfo[i][TeleZ]);
SetPlayerInterior(playerid, InteriorInfo[i][Interior]);
InInterior[playerid] = i;
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
}
}
return 1;
}
Regards.