7 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #918 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #919 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #920 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #921 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #922 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #923 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #924 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #925 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #926 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #927 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #928 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #929 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #930 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #931 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #932 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #933 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #934 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #935 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #936 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #937 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #938 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #939 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #940 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #941 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #942 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #943 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #944 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #945 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #946 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #947 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #948 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #949 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #950 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #951 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #952 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #953 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #954 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #955 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #956 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #957 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #958 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #959 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #960 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #961 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #962 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #963 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #964 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #965 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #966 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #967 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #968 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #969 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #970 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #971 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #972 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #973 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #974 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #975 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #976 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #977 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #978 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #979 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #980 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #981 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #982 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #983 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #984 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #985 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #986 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #987 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #988 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #989 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #990 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #991 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #992 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #993 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #994 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #995 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #996 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #997 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #998 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #999 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1000 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1001 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1002 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1003 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1004 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1005 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1006 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1007 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1008 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1009 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1010 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1011 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1012 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1013 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1014 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1015 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1016 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1017 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1018 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1019 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1020 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1021 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1022 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1023 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1024 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1025 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1026 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1027 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1028 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1029 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1030 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1031 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1032 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1033 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1034 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1035 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1036 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1037 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1038 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1039 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1040 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1041 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1042 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1043 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1044 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1045 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1046 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1047 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
[14:03:27] [debug] #1048 002c4528 in public cmd_shout (0x0000000c, 0x0242a1ec) from EXRPu19.amx
CMD:shout(playerid, params[]) {
return cmd_shout(playerid, params);
}
CMD:s(playerid, params[])
{
if(gPlayerLogged{playerid}
== 0) {
SendClientMessageEx(playerid, COLOR_GREY, "You're not logged in.");
return 1;
}
if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: (/s)hout [shout chat]");
new string[128];
if(PlayerInfo[playerid][pMask] == 0) {
format(string, sizeof(string), "(shouts) %s!", params);
SetPlayerChatBubble(playerid,string,COLOR_WHITE,60.0,5000);
format(string, sizeof(string), "%s shouts: %s!", GetPlayerNameEx(playerid), params);
ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
}
if(PlayerInfo[playerid][pBugged] == 1&&PlayerInfo[playerid][pMask] == 0) {
format(string, sizeof(string), "(bug) %s shouts: %s!", GetPlayerNameEx(playerid), params);
SendBugMessage(2, COLOR_LIGHTGREEN, string);
}
if(PlayerInfo[playerid][pMask] == 1) {
format(string, sizeof(string), "(shouts) %s!", params);
SetPlayerChatBubble(playerid,string,COLOR_WHITE,60.0,5000);
format(string, sizeof(string), "Stranger shouts: %s!", params);
ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
}
if(PlayerInfo[playerid][pBugged] == 1&&PlayerInfo[playerid][pMask] == 1) {
format(string, sizeof(string), "(bug) Stranger shouts: %s!", GetPlayerNameEx(playerid), params);
SendBugMessage(2, COLOR_LIGHTGREEN, string);
}
return 1;
}
CMD:shout(playerid, params[]) {
return cmd_s(playerid, params);
}
CMD:s(playerid, params[])
{
if(gPlayerLogged{playerid}
== 0) {
SendClientMessageEx(playerid, COLOR_GREY, "You're not logged in.");
return 1;
}
if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: (/s)hout [shout chat]");
new string[128];
if(PlayerInfo[playerid][pMask] == 0) {
format(string, sizeof(string), "(shouts) %s!", params);
SetPlayerChatBubble(playerid,string,COLOR_WHITE,60.0,5000);
format(string, sizeof(string), "%s shouts: %s!", GetPlayerNameEx(playerid), params);
ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
}
if(PlayerInfo[playerid][pBugged] == 1&&PlayerInfo[playerid][pMask] == 0) {
format(string, sizeof(string), "(bug) %s shouts: %s!", GetPlayerNameEx(playerid), params);
SendBugMessage(2, COLOR_LIGHTGREEN, string);
}
if(PlayerInfo[playerid][pMask] == 1) {
format(string, sizeof(string), "(shouts) %s!", params);
SetPlayerChatBubble(playerid,string,COLOR_WHITE,60.0,5000);
format(string, sizeof(string), "Stranger shouts: %s!", params);
ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
}
if(PlayerInfo[playerid][pBugged] == 1&&PlayerInfo[playerid][pMask] == 1) {
format(string, sizeof(string), "(bug) Stranger shouts: %s!", GetPlayerNameEx(playerid), params);
SendBugMessage(2, COLOR_LIGHTGREEN, string);
}
return 1;
}
I changed "u" to "i" but when i do for example /fine 0 1 test
It still says Invalid Player Specified and this didn't happen before. It happend when a fellow scripter updated sscanf. |
CMD:makeadmin(playerid, params[])
{
if(gPlayerLogged{playerid} == 0)
{
SendClientMessageEx(playerid, COLOR_GREY, "You're not logged in.");
return 1;
}
new pID, level,str[128];
if(PlayerInfo[playerid][pAdmin] <= 999998 && PlayerInfo[playerid][pAdminPer] != 1) return SendClientMessage(playerid, COLOR_GRAD2, NOTADMIN);
if(PlayerInfo[playerid][pAdmin] >= 999999 || PlayerInfo[playerid][pAdminPer] == 1)
{
if(sscanf(params, "ud", pID, level))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /makeadmin [playerid] [level]");
return 1;
}
if(PlayerInfo[playerid][pAdmin] < PlayerInfo[pID][pAdmin])
{
return SendClientMessage(playerid, COLOR_GRAD2, NOTADMIN);
}
if(PlayerInfo[playerid][pAdmin] != 999999 && level == 999999)
{
return SendClientMessage(playerid, COLOR_GRAD2, "Only Owners can promote people to Owners!");
}
if(level < 0 || level > 999999)
{
SendClientMessageEx(playerid, COLOR_GRAD1, "Admin level can not be below 0 or above 999999!");
return 1;
}
if(level == 0)
{
PlayerInfo[pID][pAdmin] = 0;
format(str,sizeof(str),"* %s has revoked your admin status. You're no longer an admin.", GetPlayerNameEx(playerid));
SendClientMessage(pID, COLOR_LIGHTBLUE, str);
format(str,sizeof(str),"* You've revoked %s's admin status.", GetPlayerNameEx(pID));
SendClientMessage(playerid, COLOR_LIGHTBLUE, str);
format(str,sizeof(str),"ADMCMD: %s has revoked %s's admin status.", GetPlayerNameEx(playerid), GetPlayerNameEx(pID));
ABroadCast(COLOR_LIGHTRED, str, 2);
}
else
{
new rtext[32];
if(level == 1) { format(rtext,sizeof(rtext),"Server Moderator"); }
if(level == 2) { format(rtext,sizeof(rtext),"Junior Admin"); }
if(level == 3) { format(rtext,sizeof(rtext),"General Admin"); }
if(level == 4) { format(rtext,sizeof(rtext),"Senior Admin"); }
if(level == 1337) { format(rtext,sizeof(rtext),"Head Admin"); }
if(level == 1338) { format(rtext,sizeof(rtext),"Server Manager"); }
if(level == 99999) { format(rtext,sizeof(rtext),"Server Director"); }
if(level == 999996) { format(rtext,sizeof(rtext),"Elite Admin"); }
if(level == 999997) { format(rtext,sizeof(rtext),"Community Manager"); }
if(level == 999998) { format(rtext,sizeof(rtext),"Community Co-Owner"); }
if(level == 999999) { format(rtext,sizeof(rtext),"Community Owner"); }
PlayerInfo[pID][pAdmin] = level;
format(str,sizeof(str),"* You've made %s a %s.", GetPlayerNameEx(pID), rtext);
SendClientMessage(playerid, COLOR_LIGHTBLUE, str);
format(str,sizeof(str),"* Admin %s has made you a %s.", GetPlayerNameEx(playerid), rtext);
SendClientMessage(pID, COLOR_LIGHTBLUE, str);
format(str,sizeof(str),"ADMCMD: %s has made %s a %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(pID), rtext);
ABroadCast(COLOR_LIGHTRED, str, 2);
}
}
return 1;
}
CMD:makeleader(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] >= 1338 || PlayerInfo[playerid][pFactionModerator] == 1)
{
new string[128], giveplayerid, faction;
if(sscanf(params, "ud", giveplayerid, faction))
{
SendClientMessageEx(playerid, COLOR_GRAD3, "|1 LSPD |2 FBI |3 BHF |4 LSFMD |5 Judical System");
SendClientMessageEx(playerid, COLOR_GRAD2, "|6 Government |7 SAST |8 Hitman| 9 SANews");
SendClientMessageEx(playerid, COLOR_GRAD1, "|10 SA50 |11 NG |12 Tierra Robada ");
SendClientMessageEx(playerid, COLOR_GRAD1, "|0 None");
return 1;
}
if(faction > 14 || faction < 0) { SendClientMessageEx(playerid, COLOR_GREY, " Don't go below number 0, or above number 14!"); return 1; }
if(IsPlayerConnected(giveplayerid))
{
new ftext[30];
PlayerInfo[giveplayerid][pLeader] = faction;
if(faction == 1) { PlayerInfo[giveplayerid][pRank] = 10; }
if(faction == 2) { PlayerInfo[giveplayerid][pRank] = 6; }
if(faction == 7) { PlayerInfo[giveplayerid][pRank] = 12; }
if(faction == 10) { PlayerInfo[giveplayerid][pRank] = 10; }
if(faction == 11) { PlayerInfo[giveplayerid][pRank] = 15; }
PlayerInfo[giveplayerid][pMember] = faction;
if(PlayerInfo[giveplayerid][pLeader] == 0) { ftext = "None"; }
else if(PlayerInfo[giveplayerid][pLeader] == 1) { ftext = "LSPD"; }
else if(PlayerInfo[giveplayerid][pLeader] == 2) { ftext = "FBI"; }
else if(PlayerInfo[giveplayerid][pLeader] == 3) { ftext = "BHF"; }
else if(PlayerInfo[giveplayerid][pLeader] == 4) { ftext = "LSFMD"; }
else if(PlayerInfo[giveplayerid][pLeader] == 5) { ftext = "Judicial System"; }
else if(PlayerInfo[giveplayerid][pLeader] == 6) { ftext = "The Government"; }
else if(PlayerInfo[giveplayerid][pLeader] == 7) { ftext = "SAST"; }
else if(PlayerInfo[giveplayerid][pLeader] == 8) { ftext = "Hitman Agency"; }
else if(PlayerInfo[giveplayerid][pLeader] == 9) { ftext = "SANews"; }
else if(PlayerInfo[giveplayerid][pLeader] == 10) { ftext = "SA50"; }
else if(PlayerInfo[giveplayerid][pLeader] == 11) { ftext = "SAAS"; }
else if(PlayerInfo[giveplayerid][pLeader] == 12) { ftext = "Tierra Robada"; }
else { return 1; }
format(string, sizeof(string), "You have been made the leader of the %s by Faction Moderator %s.",ftext, GetPlayerNameEx(playerid));
SendClientMessageEx(giveplayerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "You have made %s the leader of the %s.", GetPlayerNameEx(giveplayerid),ftext);
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
new year,month,day,log[128];
getdate(year, month, day);
format(log, sizeof(log), "ADMCMD: %s has made %s the leader of the %s(%d-%d-%d)", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid),ftext, month, day, year);
Log("logs/gifts.log", log);
if(faction < 4 && faction > 0 || faction > 4 && faction < 7)
{
gTeam[giveplayerid] = 2;
PlayerInfo[giveplayerid][pTeam] = 2;
}
PlayerInfo[giveplayerid][pFMember] = 255;
}
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
}
return 1;
}