Guest User

Untitled

a guest
Jun 18th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.95 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3. #include <colors>
  4. new price = 1000000;
  5. new bool:OnText,dText,gstring[256];
  6.  
  7. public OnGameModeInit()
  8. {
  9.     print("this system created by TheKiller - enosh ~ there is not credits in the game");
  10.     return 1;
  11. }
  12.  
  13.  
  14. public OnPlayerText(playerid, text[])
  15. {
  16.     if(OnText==true){
  17.         if(text[0] == dText){
  18.             OnText=false;
  19.             format(gstring,256,"[text]ניצח בפעילות חזרה על הטקסט %s השחקן",name(playerid));
  20.             SendClientMessageToAll(0xFFFF00AA ,gstring);
  21.             format(gstring,256,"[text] ניצחת בפעילות החזרה על הטקסט! אתה זוכה ב %d דולר",price);
  22.             SendClientMessage(playerid,0x7CFC00AA,gstring);
  23.             GivePlayerMoney(playerid,price);
  24.         }
  25.     }
  26.     return 1;
  27. }
  28.  
  29. CMD:text(playerid, params[])
  30. {
  31.     if(IsPlayerAdmin(playerid)){
  32.         if(OnText==true){
  33.             format(gstring,256,"[text]סגר את פעילות החזרה על הטקסט %s האדמין ***",name(playerid));
  34.             SendClientMessageToAll(0xFFFF00AA,gstring);
  35.             OnText=false;
  36.         }else{
  37.             if(isnull(params))return SendClientMessage(playerid,0xAA3333AA,"USAGE: /text <text>");
  38.             OnText=true;
  39.             dText = params[0];
  40.             SendClientMessageToAll(0xFFFF00AA,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  41.             format(gstring,256,"[text]פתח את פעילות החזרה על הטקסט %s האדמין ***",name(playerid));
  42.             SendClientMessageToAll(0xFFFF00AA,gstring);
  43.             format(gstring,256,"[text] הזוכה הגדול יצא בפרס בסכום של כ %d דולר ***",price);
  44.             SendClientMessageToAll(0xFFFF00AA,gstring);
  45.             format(gstring,256,"[text]~~%s~~ :הטקסט הדרוש",params[0]);
  46.             SendClientMessageToAll(0xFFFF00AA,gstring);
  47.             SendClientMessageToAll(0xFFFF00AA,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  48.         }
  49.     }else return 0;
  50.     return 1;
  51. }
  52. stock name(playerid)
  53. {
  54.     new namee[MAX_PLAYER_NAME];
  55.     GetPlayerName(playerid,namee,MAX_PLAYER_NAME);
  56.     return namee;
  57. }
Add Comment
Please, Sign In to add comment