18.07.2014, 01:49
1. - The first GameTextForPlayer shows up, the other 2 don't
2. When entered in LSPD and bank, everything's grey, even though I'm positive the interiors are correct.
Thanks
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == armourpickup)
{
SetPlayerArmour(playerid, 100);
GameTextForPlayer(playerid, "ARMOR NAPUNJEN!", 3000, 5);
}
return 1;
if(pickupid == zatvorpickup)
{
GameTextForPlayer(playerid, "Zatvor (/enter)", 3000, 4);
}
return 1;
if(pickupid == enterpickup)
{
GameTextForPlayer(playerid, "Koristi /enter da udjes", 3000, 4);
}
return 1;
}
Код:
CMD:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 5, 1554.7246,-1675.5688,16.1953))//PD
SetPlayerPos(playerid, 246.40,110.84,1003.22);
SetPlayerInterior(playerid, 10);
return 1;
if(IsPlayerInRangeOfPoint(playerid, 5, 1455.1255,-1010.9031,26.8438))//BANK
SetPlayerPos(playerid, 2315.952880,-1.618174,26.742187);
SetPlayerInterior(playerid, 0);
return 1;
}
CMD:exit(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 5, 246.40,110.84,1003.22)) //PD
SetPlayerPos(playerid, 1554.7246,-1675.5688,16.1953);
SetPlayerInterior(playerid, 0);
return 1;
if(IsPlayerInRangeOfPoint(playerid, 5, 2315.952880,-1.618174,26.742187)) //BANK
SetPlayerPos(playerid, 1455.1255,-1010.9031,26.8438);
SetPlayerInterior(playerid, 0);
return 1;
}


