SA-MP Forums Archive
Speedo meter script help here please - 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: Speedo meter script help here please (/showthread.php?tid=485765)



Speedo meter script help here please - wolvaren1999 - 05.01.2014

can some one help me how to make an speedo meter like this ? http://www.solidfiles.com/d/bf7a58da87/

and someone help me pls to make 3 cmds this cmds is 1- pnrg 2-dpnrg 3-cpnrg

pnrg to create an personal nrg-500 to the player who type /pnrg

/cpnrg to call the nrg that i created

/dpnrg to distroy that nrg i created and create new one

if some one type /cpnrg and he did't use pnrg send to him message that he need to use /pnrg first

thanks for helping wish you all will help me in what i need thanks

NP: please if there is an tutorial for this things i need pls post link thanks for reading hope all will help me thanks


Re: Speedo meter script help here please - RedFusion - 05.01.2014

pawn Код:
#include <a_samp>
new vNRG[MAX_PLAYERS];

stock DestroyPersonalNRG(playerid)
{
    if(vNRG[playerid] != 0)
        DestroyVehicle(vNRG[playerid]);
    vNRG[playerid] = 0;
}

public OnFilterScriptExit()
{
    for(new playerid = 0, players = GetMaxPlayers(); playerid < players; playerid ++)
        DestroyPersonalNRG(playerid);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    DestroyPersonalNRG(playerid);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/pnrg", cmdtext, true, 5) == 0)
    {
        new Float:x, Float:y, Float:z, Float:a;
        GetPlayerPos(playerid, x, y, z);
        if(IsPlayerInAnyVehicle(playerid))
            GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
        else
            GetPlayerFacingAngle(playerid, a);

        if(vNRG[playerid] != 0)
            DestroyVehicle(vNRG[playerid]);
        vNRG[playerid] = CreateVehicle(522, x, y, z, a, -1, -1, -1);
        LinkVehicleToInterior(vNRG[playerid], GetPlayerInterior(playerid));
        PutPlayerInVehicle(playerid, vNRG[playerid], 0);
        return 1;
    }
    return 0;
}



Re: Speedo meter script help here please - wolvaren1999 - 06.01.2014

thanks for make /pnrg for me but what about the speedo meter and /cpnrg and /dpnrg ?


Re: Speedo meter script help here please - RedFusion - 06.01.2014

Get it somewhere else not doing everything for you without payment


Re: Speedo meter script help here please - wolvaren1999 - 06.01.2014

lol you want me pay you for 3 commands ? how much money you want for them 50 cent ?


Re: Speedo meter script help here please - RedFusion - 06.01.2014

Well i dont see anyone else around here helping you out for free


Re: Speedo meter script help here please - wolvaren1999 - 06.01.2014

maybe bec: some of them can even script this things i mean ( noobs )


Re: Speedo meter script help here please - RedFusion - 06.01.2014

Perhaps, but they're still not helping you are they? Unsubscribing the thread.


Re: Speedo meter script help here please - sammp - 06.01.2014

Hi,

there are speedometer scripts all over the sa-mp forums, therefore it should not be a requirement that we make one for you.

Thanks,
sammp


Re: Speedo meter script help here please - wolvaren1999 - 07.01.2014

Quote:
Originally Posted by RedFusion
Посмотреть сообщение
Perhaps, but they're still not helping you are they? Unsubscribing the thread.
bro thanks for helping me with one command you the one who tryed to help me i think you need to get 1 rep for helpping me thanks