- 0
Problema /ec
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
AlexVs
Ce ar trebui sa fac ca aceasta comanda sa mearga doar cand ai /event activat ?
[pawn]//----------------------------------[government]-----------------------------------------------
if(strcmp(cmd, "/eventchat", true) == 0 || strcmp(cmd, "/ec", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(Event[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, " Tu nu ai /event activat !");
return 1;
}
if(PlayerInfo[playerid][pMuted] == 1)
{
format(string, sizeof(string), "[Mute] Tu nu poti sa scri nimic, trebuie sa astepti %d secunde !",PlayerInfo[playerid][pMuteTime]);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "SCRIE: (/ec) Event Chat [text]");
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Event News Announce ___________|");
format(string, sizeof(string), " %s : %s", sendername, result);
SendClientMessageToAll(COLOR_DBLUE, string);
//====
//====
}
return 1;
}[/pawn]
3 answers to this question
Recommended Posts