06.02.2011, 00:47
I added a pickup to send a player to Barbara room 322.197998,302.497985,999.148437 but it sets my position to above the ocean and falling.
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
new string[200], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string),"%s picked up pickup id %d", name, pickupid);
printf(string);
if(pickupid == BlackMarket)
{
if(team[playerid]==0)
{
SetPlayerPos(playerid,322.197998,302.497985,999.148437);
SendClientMessage(playerid,COLORYELLOW,"You entered the Black Market!");
}
if(team[playerid]==1)
{
SendClientMessage(playerid,COLORRED,"The Black Market security guards refuse to let you in!");
}
}
return 1;
}