Guest User

Untitled

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