Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:checkplate(playerid, params[])
- {
- static
- rows,
- fields;
- static
- string[1024],
- name[128],
- id;
- cache_get_data(rows, fields, g_iHandle);
- if (!rows)
- return SendErrorMessage(playerid, "Este veículo não existe.");
- if (GetFactionType(playerid) != FACTION_POLICE)
- return SendErrorMessage(playerid, "You needs be a cop.");
- if (sscanf(params, "d", id))
- return SendSyntaxMessage(playerid, "/checkplate [vehicleid]");
- if (!IsValidVehicle(id) || Car_GetID(id) == -1)
- return SendErrorMessage(playerid, "You specified an invalid ID.");
- string[0] = 0;
- for (new i = 0; i < rows; i ++)
- {
- format(string,sizeof(string),"The owner of this car it's %s.", cache_get_field_content(i, "Character", CarData[id][carOwner], g_iHandle, MAX_PLAYER_NAME+1));
- SendClientMessage(playerid, COLOR_GREEN, string);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement