19.11.2010, 14:33
Faz assim:
Agora:
Agora no
[/pawn] public OnPlayerPickUpPickup(playerid, pickupid)[/pawn]
Coloque:
Nгo testei lol!
pawn Код:
//No topo//
new PickupEntrar; //Define o Pickup de Entrar
new PickupSair; // Define o Pickup de Sair
pawn Код:
//No OnGameModeInit() ou OnFilterScriptinit//
//
//Aqui coloque as cordenadas do local de Entrada
PickupEntrar = CreatePickup(IDdoPICKUP,2,PosX,PosY,PosZ,VirtualWorld);//Pickup Definido com Local
//Aqui coloque as cordenadas do local de saida
PickupSair = CreatePickup(IDdoPICKUP,2,PosX,PosY,PosZ,VirtualWorld);//Pickup Definido com Local
[/pawn] public OnPlayerPickUpPickup(playerid, pickupid)[/pawn]
Coloque:
pawn Код:
if (pickupid == PickupEntrar)
{
SetPlayerPos(playerid, PosX, PosY, PosZ); //Aqui coloca 1m a frente da saida pra num ser teleportado sempre
SendClientMessage(playerid,0x18FF23AA,"Voce entrou lol");
}
else if (pickupid == PickupSair)
{
SetPlayerPos(playerid, -195.9635, 2554.2236, 66.3328);//Aqui Coloca 1m a frente da Entrada pra num ser teleportado sempre
SendClientMessage(playerid,0x18FF23AA,"Voce saiu lol");
}