22.09.2010, 20:02
i just tried that and when i get into the vehicle, it shows me:
this is the code i used:
Код:
** 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
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);
}
}