[AJUDA] Adicionar Pickup com Mensagem
#4

Quote:
Originally Posted by Gangster_
Ai ..
TOPO \/
pawn Код:
new pickup_A;
new pickup_B;
no meu caso й um fs entaum se for gm so muda a public OnFilter para OnGame
pawn Код:
public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print("                   ");
    print("--------------------------------------\n");
    pickup_A = CreatePickup(1239, 1, 1568.5808,-1689.9780,6.2188);// DP:
    pickup_B = CreatePickup(1239, 1, 1564.9734,-1667.1722,28.3956);// DP:
    return 1;
}
e aqui tbm \/
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == pickup_A)
    {
        SendClientMessage(playerid, Verde, "Subiu no Teto da DP");
        SetPlayerPos(playerid,1569.6025,-1667.4752,28.3956);
    }

    if(pickupid == pickup_B)
    {
        SendClientMessage(playerid, Verde, "Desceu do Teto da DP");
        SetPlayerPos(playerid,1565.5808,-1689.9780,6.2188);
    }
    return 1;
}
Isso й no GameModeInit:
pawn Код:
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("                    ");
print("--------------------------------------\n");
pickup_A = CreatePickup(1239, 1, 1568.5808,-1689.9780,6.2188);// DP:
pickup_B = CreatePickup(1239, 1, 1564.9734,-1667.1722,28.3956);// DP:
return 1;
}


serto й :
pawn Код:
public OnGameModeInit()
{
pickup_A = CreatePickup(1239, 1, 1568.5808,-1689.9780,6.2188);// DP:
pickup_B = CreatePickup(1239, 1, 1564.9734,-1667.1722,28.3956);// DP:
return 1;
}
Reply


Messages In This Thread
[AJUDA] Adicionar Pickup com Mensagem - by Rakun - 31.05.2010, 14:23
Re: [AJUDA] Adicionar Pickup com Mensagem - by ipsBruno - 31.05.2010, 14:48
Re: [AJUDA] Adicionar Pickup com Mensagem - by Gangster_ - 31.05.2010, 15:36
Re: [AJUDA] Adicionar Pickup com Mensagem - by zSuYaNw - 31.05.2010, 17:04
Re: [AJUDA] Adicionar Pickup com Mensagem - by russo666 - 31.05.2010, 17:07
Re: [AJUDA] Adicionar Pickup com Mensagem - by zSuYaNw - 31.05.2010, 17:12

Forum Jump:


Users browsing this thread: 1 Guest(s)