Speedo meter script help here please
#1

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
Reply
#2

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;
}
Reply
#3

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

Get it somewhere else not doing everything for you without payment
Reply
#5

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

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

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

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

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
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)