Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strfind(inputtext, "_", true) != -1)
- {
- new infoString[300];
- new id = GetIDFromName(inputtext), dlicense[50], wlicense[50], lwarrant[100];
- if(PlayerInfo[id][pDriverLicense] == 1)
- {
- format(dlicense, sizeof(dlicense), ""COL_GREEN"Acquired"COL_WHITE"");
- }
- else
- {
- format(dlicense, sizeof(dlicense), ""COL_RED"Not Acquired"COL_WHITE"");
- }
- if(PlayerInfo[id][pWepLicense] == 1)
- {
- format(wlicense, sizeof(wlicense), ""COL_GREEN"Acquired"COL_WHITE"");
- }
- else
- {
- format(wlicense, sizeof(wlicense), ""COL_RED"Not Acquired"COL_WHITE"");
- }
- if(!isnull(PlayerInfo[id][pActiveOffense6]))
- {
- format(lwarrant, sizeof(lwarrant), PlayerInfo[id][pActiveOffense6]);
- }
- else if(!isnull(PlayerInfo[id][pActiveOffense5]))
- {
- format(lwarrant, sizeof(lwarrant), PlayerInfo[id][pActiveOffense5]);
- }
- else if(!isnull(PlayerInfo[id][pActiveOffense4]))
- {
- format(lwarrant, sizeof(lwarrant), PlayerInfo[id][pActiveOffense4]);
- }
- else if(!isnull(PlayerInfo[id][pActiveOffense3]))
- {
- format(lwarrant, sizeof(lwarrant), PlayerInfo[id][pActiveOffense3]);
- }
- else if(!isnull(PlayerInfo[id][pActiveOffense2]))
- {
- format(lwarrant, sizeof(lwarrant), PlayerInfo[id][pActiveOffense2]);
- }
- else if(!isnull(PlayerInfo[id][pActiveOffense1]))
- {
- format(lwarrant, sizeof(lwarrant), PlayerInfo[id][pActiveOffense1]);
- }
- format(infoString, sizeof(infoString), "Complete Name: %s\nTelephone Number: %d\nDriver's License: %s\nFirearms License: %s\n\nLast Warrant: %s\n\nHouse Address: %s\nBusiness Address: %s", GetName(inputtext), PlayerInfo[id][pNumber], dlicense, wlicense, lwarrant, ReturnHouseZone(PlayerInfo[id][HouseID]), ReturnBizZone(PlayerInfo[id][BizID]));
- ShowPlayerDialog(playerid, 67, DIALOG_STYLE_MSGBOX, "MDC Police - Search Results", infoString, "", "Exit");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement