How to get this info?
#3

i just tried that and when i get into the vehicle, it shows me:
Код:
** Model: (Alpha) Category: (nsfender) Mod: () Cost: ($0) // in Alpha
** Model: (Buffalo) Category: (ransfender) Mod: () Cost: ($0) // in Buffalo
** Model: (Savanna) Category: (ow Co) Mod: () Cost: ($0) // in Savanna
this is the code i used:
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(IsPlayerConnected(playerid) && IsPlayerInAnyVehicle(playerid))
    {
        new vehicleid = GetPlayerVehicleID(playerid);
        new modelid = GetVehicleModel(vehicleid);
        new string[128];
        format(string, sizeof(string), "** Model: (%s) Category: (%s) Mod: (%s) Cost: ($%d)", Cars[modelid-400][CarName], Cars[modelid-400][CarType], Cars[modelid-400][CarMod], Cars[modelid-400][CarCost]);
        SendClientMessage(playerid, 0xFFFFFFFF, string);
    }
}
Reply


Messages In This Thread
How to get this info? - by Rulaz - 22.09.2010, 19:11
Re: How to get this info? - by MadeMan - 22.09.2010, 19:23
Respuesta: How to get this info? - by Rulaz - 22.09.2010, 20:02
Re: How to get this info? - by [XST]O_x - 22.09.2010, 20:07
Re: How to get this info? - by MadeMan - 22.09.2010, 20:15
Respuesta: How to get this info? - by Rulaz - 22.09.2010, 20:20

Forum Jump:


Users browsing this thread: 1 Guest(s)