10.06.2014, 23:51
nгo testei, tenta ai... (nгo conheзo muito zcmd)
pawn Код:
//nгo sei usar essa include cpstream entгo fiz normal, adapta ai.
public OnPlayerEnterCheckpoint(playerid)
{
if(PlayerToPoint(3.0,playerid,377.1693,-68.4242,1001.5151))
{
return cmd_cardapio (playerid, params);
}
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == entrada)
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid, 369.1026,-72.1459,1001.5078);
SetPlayerCheckpoint(playerid, 377.1693,-68.4242,1001.5151, 3.0);
SendClientMessage(playerid, -1,"| Lanchonete | Entre na marca vermelha para comer algo.");
lanchonete[playerid] = true;
}
if(pickupid == saida)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1349.6332, -1551.5751, 13.5469);
DisablePlayerCheckpoint(playerid);
lanchonete[playerid] = false;
}
return 0;
}