08.03.2015, 09:00
(
Last edited by HY; 08/03/2015 at 11:23 AM.
)
- Function:
- Example:
- Including:
- Download:
- Solidfiles.
- Pastebin.
pawn Code:
native GetVehicleName(vehicleid)
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;
}
pawn Code:
#include <a_samp>
#include <GVN>
#include <others_includes>
- Solidfiles.
- Pastebin.