[ Новые сообщения · Участники · Правила форума · Поиск · RSS ] |
|
Форум - Сообщество любителей игры GTA:MP » SA-MP Scripting » Школа PAWNO » Лидеры Онлайн |
Лидеры Онлайн |
Дата: 31.01.2011, Понедельник, 11:54:12 | Сообщение # $NUMBER
Команда /leaders вида: Фракция-Ник-Номер В начало мода Quote #define Color_Yellow5 0xF6BA00AA #define Color_Yellow234 0xE2E74EAA Или просто в коде измените цвет на свой
Пихаем в public OnPlayerCommandText(playerid, cmdtext[]) Quote if (strcmp(cmd, "/leaders", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, Color_Yellow5, "| Лидеры онлайн |"); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pLeader] > 0) { GetPlayerName(i, giveplayer, sizeof(giveplayer)); if(PlayerInfo[i][pLeader] == 1) { format(string, 256, " Полиция: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 2) { format(string, 256, " ФБР: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 3) { format(string, 256, " Армия: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 4) { format(string, 256, " МЧС: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 5) { format(string, 256, " Surenos Gang: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 6) { format(string, 256, " Signatra Mafia: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 7) { format(string, 256, " Мэрия: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 8) { format(string, 256, " Агенство: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 9) { format(string, 256, " Репортеры: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 10) { format(string, 256, " Такси: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 11) { format(string, 256, " Служба Лицензирования: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 13) { format(string, 256, " Sons of Anarchy Gang: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 14) { format(string, 256, " Yamaguchi Mafia: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 15) { format(string, 256, " LCN: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 16) { format(string, 256, " Russian Mafia: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 17) { format(string, 256, " The Ballas: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 18) { format(string, 256, " The Grove Street: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } } } } } return 1; } Добавлено (31.01.2011, 11:54:12) |
Дата: 31.01.2011, Понедельник, 12:07:55 | Сообщение # $NUMBER
fr3ak сори ща уберу :D
Добавлено (31.01.2011, 12:05:14) Quote if (strcmp(cmd, "/leaders", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, Color_Yellow5, "| Лидеры онлайн |"); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pLeader] > 0) { GetPlayerName(i, giveplayer, sizeof(giveplayer)); if(PlayerInfo[i][pLeader] == 1) { format(string, 256, " Полиция: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 2) { format(string, 256, " ФБР: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 3) { format(string, 256, " Армия: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 4) { format(string, 256, " МЧС: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 5) { format(string, 256, " Surenos Gang: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 6) { format(string, 256, " Signatra Mafia: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 7) { format(string, 256, " Мэрия: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 8) { format(string, 256, " Агенство: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 9) { format(string, 256, " Репортеры: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 10) { format(string, 256, " Такси: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 11) { format(string, 256, " Служба Лицензирования: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 13) { format(string, 256, " Sons of Anarchy Gang: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 14) { format(string, 256, " Yamaguchi Mafia: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 15) { format(string, 256, " LCN: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 16) { format(string, 256, " Russian Mafia: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 17) { format(string, 256, " The Ballas: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } else if(PlayerInfo[i][pLeader] == 18) { format(string, 256, " The Grove Street: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]); SendClientMessage(playerid, Color_Yellow234, string); } return 1; } Добавлено (31.01.2011, 12:06:50) Добавлено (31.01.2011, 12:07:55) |
Дата: 31.01.2011, Понедельник, 22:11:18 | Сообщение # $NUMBER
Вот что получилось, кто поможет с меня плюсик,
Code C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2187) : error 004: function "SafeGivePlayerMoney" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2216) : error 004: function "SafeGivePlayerMoney" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2252) : error 004: function "SafeResetPlayerWeapons" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2253) : error 004: function "SafeGivePlayerWeapon" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2280) : error 004: function "SafeResetPlayerWeapons" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2751) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2762) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2774) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2778) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2790) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2794) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2798) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2802) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2806) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2810) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2814) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2818) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2830) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2834) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2838) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2842) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2846) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2858) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2862) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2866) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Admin\Рабочий стол\larp\gamemodes\larp.pwn(2878) : error 004: function "PlayerToPoint" is not implemented Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 26 Errors. |
| |||
| |||