09.01.2018, 01:05
Well, from what I understand in the list of players that have the infernus, I'll give you a hint you can do the following: declare a variable playerdata [playerid] [pInfernus] and when the player buys an infernus you put playerdata [playerid ] [pinfernus] = 1; it will be easier to make the list of who has infernus on the server. list below:
Код:
CMD:search(playerid, params[]) { new car[15], String[128]; if(sscanf(params, "s[15]", car)) return SendClientMessage(playerid, -1, "USE: /search [car]"); if(strcmp(params, "inf", true)) { for(new i = 0; i < MAX_PLAYERS; i++) { if(pData[i][pInfernus] > 0) { format(String, sizeof(String), "%s\n", GetName(i)); ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_MSGBOX, "Infernus", String, "Botton", "Botton1"); } } } return 1; } GetName(playerid) { new aname[MAX_PLAYER_NAME]; GetPlayerName(playerid, aname, sizeof(aname)); return aname; }