09.03.2016, 03:12
Need a Small Help !
When i Enter a Pickup it does not shows any Dialogue response i have 2 banks now and want to create more but this pickups are making issues
here is th codes :
thnx in advance
When i Enter a Pickup it does not shows any Dialogue response i have 2 banks now and want to create more but this pickups are making issues
here is th codes :
Код:
new pInfo[MAX_PLAYERS][PLAYER_MAIN];
new GetinBank;
new GetinBan;
new GetoutBan;
new GetoutBank;
GetinBank = CreatePickup(1318, 1, 1481.283813, -1770.431152, 18.795755, 0);
GetoutBank = CreatePickup(1318, 1, 2304.675537, -16.035686, 26.742187, 0);
GetinBan = CreatePickup(1318, 1, 2181.1257,2295.1389,10.8203, 0);
GetoutBan = CreatePickup(1318, 1,2304.675537, -16.035686, 26.742187, 0);
public OnPlayerPickUpPickup(playerid,pickupid)
{
if(pickupid == GetinBank)
{
GetoutBank = CreatePickup(1318, 1, 2304.675537, -16.035686, 26.742187, 0);
DestroyPickup(GetoutBan);
SetPlayerPos(playerid,2313,-4, 27);
SendClientMessage(playerid,COLOR_YELLOW,"/Bank to view the Bank Menu");
SetCameraBehindPlayer(playerid);
return 1;
}
if(pickupid == GetinBan)
{
GetoutBan = CreatePickup(1318, 1, 2304.675537, -16.035686, 26.742187, 0);
DestroyPickup(GetoutBank);
SetPlayerPos(playerid,2313,-4, 27);
SendClientMessage(playerid,COLOR_YELLOW,"/Bank to view the Bank Menu");
SetCameraBehindPlayer(playerid);
return 1;
}
if(pickupid == GetoutBan)
{
SetPlayerPos(playerid,2177.2295,2294.1592,10.8125);
SetPlayerFacingAngle(playerid,0.0);
SetCameraBehindPlayer(playerid);
return 1;
}
if(pickupid == GetoutBank)
{
SetPlayerPos(playerid,1481.130371,-1763.401000, 18.795755);
SetPlayerFacingAngle(playerid,0.0);
SetCameraBehindPlayer(playerid);
return 1;
}
return 1;
}


