if(strcmp(cmd, \"/report\", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, MAX_PLAYER_NAME);
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= \' \'))
{
idx++;
}
new offset = idx;
new result[120];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
if(CapsLockCheck(result))
{
WKick(playerid,\"Reportba nem írsz nagybetûkkel!!!\");
return 0;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
Msg(playerid, \"{0285FF}HASZNÁLAT:{FFFFFF} /report [Üzenet]\");
return 1;
}
format(string,sizeof(string),\"[%d]%s Reportja: %s\", playerid, sendername, result);
SendSegedAdminMessage(COLOR_GREEN, string)
SendClientMessage(playerid, COLOR_YELLOW, \"WayRPG: Üzeneted Elküldve az adminoknak, várj a válaszra!\");
}
return 1;
}
[mod]Code tagek.[/mod]