SA-MP Forums Archive
can someone tell me how to use this - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: can someone tell me how to use this (/showthread.php?tid=110593)



can someone tell me how to use this - hakop - 27.11.2009

Disable the OnPlayerEnterVehicleCode to disable the carjack warning.
pawn Код:
else if(!DM[killerid] && !DM[playerid])
        {
          KillWarnings[killerid]++;
          new string[128];
          switch(PlayerInfo[PLAYER_LANG][killerid])
            {
              case 0:
                {
                    format(string,sizeof(string),"~r~Kein ~w~deathmatchen ausserhalb von ~g~/dm ~w~oder ~g~/tdm~w~!~n~~r~Warnung %d/%d",KillWarnings[killerid],MAX_KILL_WARNINGS);
                    GameTextForPlayer(killerid,string,10000,4);
                }
              case 1:
                {
                    format(string,sizeof(string),"~r~No ~w~deathmatching outside of ~g~/dm ~w~or ~g~/tdm~w~!~n~~r~Warning %d/%d",KillWarnings[killerid],MAX_KILL_WARNINGS);
                    GameTextForPlayer(killerid,string,10000,4);
                }
            }
            if(KillWarnings[killerid]>=MAX_KILL_WARNINGS)
            {
              Kick(killerid);
              format(string,sizeof(string),"*** %s wurde gekickt. (Grund: Deathmatchen ausserhalb von /dm und /tdm",PlayerName(killerid));
              SendLanguageMessageToAll(LANG_DE,string);
              format(string,sizeof(string),"*** %s has been kicked. (Reason: Deathmatching outside of /dm and /tdm",PlayerName(killerid));
              SendLanguageMessageToAll(LANG_EN,string);
            }
        }
Remove this from OnPlayerDeath to disable the kill warning.


Re: can someone tell me how to use this - miokie - 27.11.2009

What You on about?
Give more details on what you need help with...