17.11.2010, 19:50
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid==pickup)
{
SetPlayerInterior(playerid, 12);
SetPlayerPos(playerid, 2324.419921,-1145.568359,1050.710083);
}
if(pickupid==pickup2) //this pickup is inside the interior, I'm making it like a exit
{
SetPlayerPos(playerid, 265.23, 2895.79, 9.26);
}
if(pickupid == WeapPickup)
{
if(team[playerid] != 2)
{
GivePlayerWeapon(playerid, wep1, ammo1-10); // -10 because the Pickup has got standard 10 ammo
DestroyPickup(WeapPickup); // if one player pick up the weapon the Pickup will be destroyed for all players
}
else
{
ResetPlayerWeapons(playerid);
SendClientMessage(playerid,YELLOW, "You do not know how to use that.");//zombies can't pick weapons up
}
}
return 1;
}
when a player goes on pickup2 it sends him to those bugged places (all dark, no objects, worlds, etc...). What's wrong ?