if(strcmp(cmd, \"/ooc\", true) == 0 || strcmp(cmd, \"/o\", true) == 0)
{
if(IsPlayerConnected(playerid))
{
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, \"Használat: (/o)oc [ooc chat]\");
return 1;
}
format(string, sizeof(string), \"OOC:(( %s: %s ))\", sendername, result);
OOCOff(COLOR_OOC,string);
printf(\"%s\", string);
}
return 1;
}
Nemtudom most mit írtam, szerintem egy jó nagy baromságot. :DDDDDDD GFbol van egyébként.