[Include] GetVehicleName - Simple, Easy & Efficient function.
#1

- Function:

pawn Code:
native GetVehicleName(vehicleid)
- Example:

pawn Code:
#include <a_samp>
#include <zcmd>
#include <sscanf>
#include <GVN>

CMD:car(playerid, params[])
{
    new modelid, string[75];
    if(sscanf(params, "i", modelid)) return SendClientMessage(playerid, -1, "{FF0000}TYPE: {FFFFFF}/Car [Model ID]");
    if(modelid < 400 || modelid > 611) return SendClientMessage(playerid, -1, "Invalid vehicle id.");
    format(string, sizeof(string), "VEH ID: %d it's %s.", modelid, GetVehicleName(modelid));
    SendClientMessage(playerid, -1, string);
    return 1;
}
- Including:

pawn Code:
#include <a_samp>
#include <GVN>
#include <others_includes>
- Download:

- Solidfiles.
- Pastebin.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)