SA-MP Forums Archive
Compile 2 FS - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Compile 2 FS (/showthread.php?tid=399625)



Compile 2 FS - truckingserver - 15.12.2012

Hey
i wanna
Compile this :
Quote:

#include <a_samp>

#define FILTERSCRIPT
#define COLOR_LIGHTBLUE 0x33CCFFAA

new p1;

public OnFilterScriptInit()
{
p1 = CreatePickup(1318, 1, -1999.9729,80.0172,27.6799);// model,type,z,x,y
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)//pickup related function
{
if(pickupid == p1)//this to make sure that the pickup we want is marker
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Informacija Uюdarbis 10LT/Min Paskirtis: Pjauti юole");
}
return 1;
}


And this
Quote:

#include <a_samp>

#define FILTERSCRIPT
#define COLOR_LIGHTBLUE 0x33CCFFAA

new p2;

public OnFilterScriptInit()
{
p2 = CreatePickup(1318, 1, -2326.9583,-140.2599,35.5547);// model,type,z,x,y
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)//pickup related function
{
if(pickupid == p2)//this to make sure that the pickup we want is marker
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Informacija Uюdarbis 12LT/Min Paskirtis: Iрveюioti picas");
}
return 1;
}

To one


Re: Compile 2 FS - Faisal_khan - 15.12.2012

Please use pawn tags to paste a code:
pawn Код:
#include <a_samp>

#define FILTERSCRIPT
#define COLOR_LIGHTBLUE 0x33CCFFAA

new p1;
new p2;

public OnFilterScriptInit()
{
p1 = CreatePickup(1318, 1, -1999.9729,80.0172,27.6799);// model,type,z,x,y
p2 = CreatePickup(1318, 1, -2326.9583,-140.2599,35.5547);// model,type,z,x,y
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)//pickup related function
{
if(pickupid == p1)//this to make sure that the pickup we want is marker
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Informacija Uюdarbis 10LT/Min Paskirtis: Pjauti юole");
}
if(pickupid == p2)//this to make sure that the pickup we want is marker
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Informacija Uюdarbis 12LT/Min Paskirtis: Iрveюioti picas");
}
return 1;
}



Re: Compile 2 FS - [HiC]TheKiller - 15.12.2012

Just add the information inside the callbacks together (not the returns). So here is how it would look:
pawn Код:
#include <a_samp>

#define FILTERSCRIPT
#define COLOR_LIGHTBLUE 0x33CCFFAA

new p1;
new p2;
//Or we could do new p1, p2;

public OnFilterScriptInit()
{
    p1 = CreatePickup(1318, 1, -1999.9729,80.0172,27.6799);// model,type,z,x,y
    p2 = CreatePickup(1318, 1, -2326.9583,-140.2599,35.5547);// model,type,z,x,y
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)//pickup related function
{
    if(pickupid == p1)//this to make sure that the pickup we want is marker
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Informacija Uюdarbis 10LT/Min Paskirtis: Pjauti юole");
    }
    if(pickupid == p2)//this to make sure that the pickup we want is marker
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Informacija Uюdarbis 12LT/Min Paskirtis: Iрveюioti picas");
    }
    return 1;
}



Re: Compile 2 FS - truckingserver - 15.12.2012

Quote:
Originally Posted by Faisal_khan
Посмотреть сообщение
Please use pawn tags to paste a code:
pawn Код:
#include <a_samp>

#define FILTERSCRIPT
#define COLOR_LIGHTBLUE 0x33CCFFAA

new p1;
new p2;

public OnFilterScriptInit()
{
p1 = CreatePickup(1318, 1, -1999.9729,80.0172,27.6799);// model,type,z,x,y
p2 = CreatePickup(1318, 1, -2326.9583,-140.2599,35.5547);// model,type,z,x,y
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)//pickup related function
{
if(pickupid == p1)//this to make sure that the pickup we want is marker
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Informacija Uюdarbis 10LT/Min Paskirtis: Pjauti юole");
}
if(pickupid == p2)//this to make sure that the pickup we want is marker
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Informacija Uюdarbis 12LT/Min Paskirtis: Iрveюioti picas");
}
return 1;
}
Ty