Own Vehicle Plate + Define Score As Money
#1

Hi, I would want to add own vehicle plate called 'SANDI' to those lines here, but im not sure how to do it. Here are the lines:

Код:
Vehicle = AddStaticVehicle(411,283.4768,-1160.4822,80.5697,43.9143,6,6); // InfernusSandi
Vehicle = AddStaticVehicle(463,287.1158,-1155.5471,80.4694,44.5693,0,0); // FreewaySandi
Plus I would want money of players shown as score. How do you do that?

Thanks And Regards.
Puzi

//edit: If possible, would someone be kind and give me a ready code for /spec id and /specoff? Thx
Reply
#2

pawn Код:
SetVehicleNumberPlate(Vehicle, "SANDI");
SetVehicleToRespawn(Vehicle);
Its vital you use SetVehicleToRespawn
Reply
#3

But does it respawn automatically or after some time? If after some time, where can I set it?

//edit: And does anybody know how to make score to show money and how do to /spec commands?
Reply
#4

When the server is restarted or started, It automatically respawns, After that it never respawns unless you use AddStaticVehicleEx or CreateVehicle,
As for the spec, Theres a adminspec.amx that comes with the server package, Should be a .pwn also
Reply
#5

Thx, but can u do so the car respawns after 2 mins? And I want the /spec command for the players, not cars, because i want to spot cheaters.

//edit: Actually nevermind with that plate thing. How can i do a /spec command for admins and how can i do score so its money?
Reply
#6

Please help...
Reply
#7

Define score as money -
Look at the LVDM script for MoneyGrubScoreUpdate
Reply
#8

For score:

pawn Код:
// OnGameModeInit
SetTimer("ScoreUpdate", 1000, 1);

// On the end of your script
forward ScoreUpdate();
public ScoreUpdate()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            SetPlayerScore(i, GetPlayerMoney(i));
        }
    }
}
Enjoy!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)