08.01.2017, 22:13
(
Последний раз редактировалось LuizReturns; 08.01.2017 в 23:13.
)
O Meu Pickup quando eu fico em cima dele , ele desaparece eu gostaria de deixar ele estбvel.
Prints Do Pickup:
http://i.imgur.com/K3RE1j9.png
http://i.imgur.com/RRSt4zT.png
http://i.imgur.com/VGUX6Wm.png
Code:
News criadas:
Agora o meu checkpoint fica aparecendo no mapa sendo que botei ele dentro de um interior como eu faзo para ele desaparecer do mini mapa e do mapa й aparecer sу dentro do interior
Prints Do Check Point :
http://i.imgur.com/tV4ZiZi.png
http://i.imgur.com/04q2E0l.png
http://i.imgur.com/p7ZCNJO.jpg
Prints Do Pickup:
http://i.imgur.com/K3RE1j9.png
http://i.imgur.com/RRSt4zT.png
http://i.imgur.com/VGUX6Wm.png
Code:
News criadas:
PHP код:
new EntradaPickup;
new SaidaPickup;
public OnGameModeInit()
{
EntradaPickup = CreatePickup(1239, 2, 1153.9978, -1772.0739, 16.5992, -1);
SaidaPickup = CreatePickup(1239, 2, 1153.9978,-1772.0739,16.5992, -1);
Create3DTextLabel("AGENCIA DE EMPREGOS",BRANCO,1153.9978,-1772.0739,16.5992,15,0);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == SaidaPickup)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1153.9978, -1772.0739, 16.5992);
}
if(pickupid == EntradaPickup)
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 1494.325195, 1304.942871, 1093.289062);
}
Comandos Criados
CMD:entrar(playerid, params [])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1153.9978,-1772.0739,16.5992))
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 1494.325195, 1304.942871, 1093.289062);
}
return true;
}
CMD:sair(playerid, params [])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1494.3717, 1304.0521, 1093.2891))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1153.9978, -1772.0739, 16.5992);
}
return true;
}
PHP код:
Code:
new bool:onCheck[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, 1491.4188, 1305.9792, 1093.2964, 2.0);
onCheck[playerid] = true;
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(onCheck[playerid]) // if it's true
{
GivePlayerMoney(playerid, 1000);
onCheck[playerid] = false;
}
return 1;
}
http://i.imgur.com/tV4ZiZi.png
http://i.imgur.com/04q2E0l.png
http://i.imgur.com/p7ZCNJO.jpg