19.06.2013, 17:26
To fix your id Bugs, change "u" to "d", that worked for me,
and:
I will explain :
In CMD : shout, you were returning CMD : shout again...
and:
pawn Код:
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;
}
In CMD : shout, you were returning CMD : shout again...