SA-MP Forums Archive
[Include] Old Gallows in SA-MP 'Object' By Otacon - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Old Gallows in SA-MP 'Object' By Otacon (/showthread.php?tid=450785)



Old Gallows in SA-MP 'Object' By Otacon - OTACON - 14.07.2013

[] Old Gallows in SA-MP 'Object' By Otacon

[] images:


[] Information:
N/A

[] function:
pawn Код:
native CreateObjectHorca(&slots, &Float:x, &Float:y, &Float:z, &Float:a); //to create the object from the gallows.
native DestroyObjectHorca(&slots); //to destroy the object of the gallows.
native IsPlayerInRangeOfHorca(playerid, &Float:distance); //to check if the player is near the object for the gallows.
[] Example Usage:
pawn Код:
#include <a_samp>
#include <zcmd>
#include <a_Horca>

public OnFilterScriptInit() {
    print("\n**************************************");
    print("     Old Gallows in SA-MP 'Object'   ");
    print("           Date: 14/07/2013            ");
    print("             Author: OTACON              ");
    print("      --* loaded with success!!. *--      ");
    print("***************************************\n");

    CreateObjectHorca(0, -1248.1201,-357.7491,14.1484,314.3095); //SLOT 1
    CreateObjectHorca(1, -1243.1990,-362.6151,14.1484,310.8629); //SLOT 2
    CreateObjectHorca(2, -1237.1652,-368.5380,14.1484,318.5919); //SLOT 3
    return true;
}
public OnFilterScriptExit() {
    print("\n**************************************");
    print("     Old Gallows in SA-MP 'Object'   ");
    print("           Date: 14/07/2013            ");
    print("             Author: OTACON              ");
    print("     --* downloaded with success!!. *--    ");
    print("***************************************\n");

    DestroyObjectHorca(0); //SLOT 1
    DestroyObjectHorca(1); //SLOT 2
    DestroyObjectHorca(2); //SLOT 3
    return true;
}
COMMAND:test(playerid, params[]) {
    if(!IsPlayerConnected(playerid)) return true;
    if(IsPlayerInRangeOfHorca(playerid, 3.0)) SendClientMessage(playerid, -1, "    [ ! ] are in position of the object!.");
    else SendClientMessage(playerid, -1, "    [ ! ] are not in position of the object!.");
    return true;
}
[] Downloads:


[] password:
Otacon

[] Credits:
OTACON


Re: Old Gallows in SA-MP 'Object' By Otacon - MP2 - 14.07.2013

They seem a bit tall. And I'm pretty sure people aren't hanged anymore..


Re: Old Gallows in SA-MP 'Object' By Otacon - Kar - 14.07.2013

Looks great, but winzip and a password? What..

Why not pastebin? your download picture is fooling us


Respuesta: Re: Old Gallows in SA-MP 'Object' By Otacon - OTACON - 14.07.2013

Quote:
Originally Posted by Kar
Посмотреть сообщение
Looks great, but winzip and a password? What..

Why not pastebin? your download picture is fooling us
http://pastebin.com/u/OtaconEvil


Re: Old Gallows in SA-MP 'Object' By Otacon - MP2 - 15.07.2013

Also you should really use English ('horca' for 'gallows'). SA-MP is English, PAWN is English, this forum is English, most people downloading this speak English, the rest of it is English etc. etc. Especially the function 'IsPlayerInRangeOfHorca' - why is one word Spanish and the others English? :/