Hy.
Valaki leírná ebbe mi a hiba ?
if(strcmp(\"/pm\", cmd, true) == 0)
{
if(ServerInfo[MustLogin] == 1 && PlayerInfo[playerid][Registered] == 1 && PlayerInfo[playerid][LoggedIn] == 0)
{
SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,\"HIBA: Nem vagy bejelentkezve\");
return 1;
}
if(ServerInfo[MustRegister] == 1 && PlayerInfo[playerid][Registered] == 0)
{
SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,\"HIBA: Nem vagy regisztrálva\");
return 1;
} }
if(PlayerInfo[playerid][Muted] == 1)
{
PlayerInfo[playerid][MuteWarnings]++;
new string[128];
if(PlayerInfo[playerid][MuteWarnings] < ServerInfo[MaxMuteWarnings]) {
format(string, sizeof(string),\"Figyelem: Te most lelettél némitva ha még is írsz akkor kickelve leszel. (%d / %d)\", PlayerInfo[playerid][MuteWarnings], ServerInfo[MaxMuteWarnings] );
SendClientMessage(playerid,red,string);
} else {
SendClientMessage(playerid,red,\"Figyelmeztetve lettél most kirúg a szerver!\");
format(string, sizeof(string),\"***%s (ID %d) kirúgva (indok: írt miközbe némítva volt)\", PlayerName2(playerid), playerid);
SendClientMessageToAll(grey,string);
SaveToFile(\"KickLog\",string); Kick(playerid);
tmp = strtok(cmdtext,idx);
if(!strlen(tmp) || strlen(tmp) > 5) {
SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,\"TIPP: /pm (id) (üzenet)\");
return 1;
}
new id = strval(tmp);
gMessage = strrest(cmdtext,idx);
if(!strlen(gMessage)) {
SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,\"TIPP: /pm (id) (üzenet)\");
return 1;
}
if(!IsPlayerConnected(id)) {
SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,\"Rossz játékos ID!\");
return 1;
}
if(playerid != id) {
GetPlayerName(id,iName,sizeof(iName));
GetPlayerName(playerid,pName,sizeof(pName));
format(Message,sizeof(Message),\"PM üzenetet küldtél neki : %s(%d): %s\",iName,id,gMessage);
SendClientMessage(playerid,PM_OUTGOING_COLOR,Message);
format(Message,sizeof(Message),\"* PM üzenet tõle: %s(%d): %s\",pName,playerid,gMessage);
SendClientMessage(id,PM_INCOMING_COLOR,Message);
PlayerPlaySound(id,1085,0.0,0.0,0.0);
printf(\"PM: %s\",Message);
}
else {
SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,\"Magadnak nem tudsz küldeni!\");
}
return 1;
}
return 1;
}
ChuckNorris: A code tagek használata kötelezõ!