SHARE
TWEET

Untitled

a guest Jun 29th, 2017 194 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * Gamemode by RFT & Mesut
  3.  * Version: v.0.1
  4.  * Bis dann!
  5.  * PS: Geil
  6. */
  7. //________| Defines von Colors |________
  8. const COLOR_PIZZA = 0xFFFF00AA;
  9. const COLOR_POMMES = 0xFFFFFFFF;
  10. const COLOR_COLA = 0xFF1E00FF;
  11.  
  12. function onScriptInit( )
  13. {
  14.     log("RFT & Mesut's Gamemode by us")
  15.     return 1;
  16. }
  17. function onGameModePulse
  18. (
  19.    void sendMessageToAll( {COLOR_PIZZA}, Gamemodpulse )
  20. )
  21.  function OnPlayerConnect
  22. (
  23.   sendMessageToAll(COLOR_POMMES, getPlayerName(playerid) + " (" + playerid + ") betritt den Server.");
  24.   sendPlayerMessage(playerid, COLOR_PIZZA, "Willkommen auf unserem Server");
  25.   sendPlayerMessage(playerid, COLOR_PIZZA, "Schreib /help, um Hilfe zu erhalten");
  26.   )
  27.   function onPlayerDisconnect(playerid, reason)
  28. {
  29.    switch (reason)
  30.    {
  31.        case 0: sendMessageToAll(COLOR_POMMES, getPlayerName(playerid)+" hat den Server verlassen. (Verlassen)");
  32.        case 1: sendMessageToAll(COLOR_POMMES, getPlayerName(playerid)+" hat den Server verlassen. (Timeout/Crash)");
  33.        case 2: sendMessageToAll(COLOR_POMMES, getPlayerName(playerid)+" hat den Server verlassen. (Kick)");
  34.    }
  35.    return 1;
  36. }
  37. function onPlayerPause(playerid)
  38. {
  39.    sendClientMessage(COLOR_COLA, "Du hast das Spiel pausiert.");
  40.    else OnPlayerUnpause(playerid)
  41.    {
  42.    sendClientMessage(COLOR_COLA, "Willkommen zurück, "+getPlayerName(playerid));
  43.    }
  44.    return 1;
  45. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top