[DUV] Pick up[RESOLVIDO]
#5

Tu leste o meu post todo sequer?

Nesse teu filterscript que mandaste agora, tinha um 'if blablabla' sem chaveta aberta. Eu eliminei aн umas coisitas e melhorei a identaзгo, etc. Compilei sem erros. Nгo testei ingame.

pawn Код:
#include <a_samp>

#define Verde 0x33AA33AA

new pickup_A;
new pickup_B;
new pickup_C;
new pickup_D;
new pickup_A1;
new pickup_A2;
new pickup_A3;

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print("                    ");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#endif

public OnGameModeInit()
{
    pickup_A = CreatePickup(1239, 1, 1568.5808,-1689.9780,6.2188);// Hospital:
    pickup_B = CreatePickup(1239, 1, 1564.9734,-1667.1722,28.3956);// Governo:
    pickup_C = CreatePickup(1239, 1, 1562.9734,-1667.1722,28.3956);//Pickup ARMAS
    pickup_D = CreatePickup(1275, 1, 253.7077,76.3095,1003.6406);//Pickup Skin
    pickup_A1 = CreatePickup(1275, 1, 253.3719,78.0132,1003.6406);//Pickup Skin
    pickup_A2 = CreatePickup(1275, 1, 254.7950,78.3707,1003.6406);//Pickup Skin
    pickup_A3 = CreatePickup(1275, 1, 255.2836,76.5384,1003.6406);//Pickup Skin
    return 1;
}

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);
    }

    if(pickupid == pickup_C)
    {
        SendClientMessage(playerid, Verde, "Pegou as Armas :D");
        GivePlayerWeapon(playerid, 27, 9999);
        GivePlayerWeapon(playerid, 29, 9999);
        GivePlayerWeapon(playerid, 24, 9999);
        GivePlayerWeapon(playerid, 31, 9999);
        GivePlayerWeapon(playerid, 17, 9999);
        GivePlayerWeapon(playerid, 34, 9999);
        GivePlayerWeapon(playerid, 39, 9999);
    }

    if(pickupid == pickup_D)
    {
        SendClientMessage(playerid, Verde, "Skin de Cop");
        SetPlayerSkin(playerid,280);
        GivePlayerWeapon(playerid, 27, 9999);
        GivePlayerWeapon(playerid, 29, 9999);
        GivePlayerWeapon(playerid, 24, 9999);
        GivePlayerWeapon(playerid, 31, 9999);
        GivePlayerWeapon(playerid, 17, 9999);
        GivePlayerWeapon(playerid, 34, 9999);
        GivePlayerWeapon(playerid, 39, 9999);
    }

    if(pickupid == pickup_A1)
    {
        SendClientMessage(playerid, Verde, "Skin de Cop 2");
        SetPlayerSkin(playerid,281);
        GivePlayerWeapon(playerid, 27, 9999);
        GivePlayerWeapon(playerid, 29, 9999);
        GivePlayerWeapon(playerid, 24, 9999);
        GivePlayerWeapon(playerid, 31, 9999);
        GivePlayerWeapon(playerid, 17, 9999);
        GivePlayerWeapon(playerid, 34, 9999);
        GivePlayerWeapon(playerid, 39, 9999);
    }

    if(pickupid == pickup_A2)
    {
        SendClientMessage(playerid, Verde, "Skin de Cop 3");
        SetPlayerSkin(playerid,282);
        GivePlayerWeapon(playerid, 27, 9999);
        GivePlayerWeapon(playerid, 29, 9999);
        GivePlayerWeapon(playerid, 24, 9999);
        GivePlayerWeapon(playerid, 31, 9999);
        GivePlayerWeapon(playerid, 17, 9999);
        GivePlayerWeapon(playerid, 34, 9999);
        GivePlayerWeapon(playerid, 39, 9999);
    }

    if(pickupid == pickup_A3)
    {
        SendClientMessage(playerid, Verde, "Skin de Cop 4");
        SetPlayerSkin(playerid,284);
        GivePlayerWeapon(playerid, 27, 9999);
        GivePlayerWeapon(playerid, 29, 9999);
        GivePlayerWeapon(playerid, 24, 9999);
        GivePlayerWeapon(playerid, 31, 9999);
        GivePlayerWeapon(playerid, 17, 9999);
        GivePlayerWeapon(playerid, 34, 9999);
        GivePlayerWeapon(playerid, 39, 9999);
    }
    return 1;
}
Reply


Messages In This Thread
[DUV] Pick up[RESOLVIDO] - by Gangster_ - 11.05.2010, 20:42
Re: [DUV] Pick up - by russo666 - 11.05.2010, 20:59
Re: [DUV] Pick up - by FrozzenxXx - 11.05.2010, 21:09
Re: [DUV] Pick up - by Gangster_ - 11.05.2010, 21:28
Re: [DUV] Pick up - by russo666 - 11.05.2010, 21:40
Re: [DUV] Pick up - by Gangster_ - 11.05.2010, 22:25
Re: [DUV] Pick up - by russo666 - 11.05.2010, 23:09
Re: [DUV] Pick up - by Gangster_ - 12.05.2010, 03:05
Re: [DUV] Pick up - by russo666 - 12.05.2010, 09:42

Forum Jump:


Users browsing this thread: 1 Guest(s)