Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Nahodný text
- #include <a_samp>
- new slovo[MAX_PLAYERS];
- new txt[MAX_PLAYERS];
- new pawn[MAX_PLAYERS];
- new prachy[MAX_PLAYERS];
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid, -1,"{0099FF}[ Mini - Event ] {00FF00}Server {FFFFFF}Používa {00FF00}Mini - Event 2.0 {FFFFFF}Upravil {00FF00}MacBack{FFFFFF}! {0099FF}/meinfo");
- return 1;
- }
- public OnFilterScriptInit()
- {
- AntiDeAMX();
- SetTimer("tojejedno",50000,true);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp("/meinfo",cmdtext,true, 10) == 0)
- {
- new string[1000];
- strcat(string,"{00FF00}Nahodny - Text\n");
- strcat(string,"{33CC33}Upravil {FFFFFF}: MacBack\n");
- strcat(string,"{33CC33}Skype {FFFFFF}: koskos1787\n");
- strcat(string,"{33CC33}Web Stránka {FFFFFF}: www.ptak1.webnode.cz/\n");
- strcat(string,"\n");
- strcat(string,"{00FF00}Jisi tento soubor chceš vylepšit napiš na skypu ;)\n");
- ShowPlayerDialog(playerid,343,DIALOG_STYLE_MSGBOX,"Nahodny Text - {00FF00}/meinfo",string,"Okay","");
- return 1;
- }
- return 0;
- }
- public OnPlayerText(playerid, text[])
- {
- for (new i = 0; i < MAX_PLAYERS; i++)
- {
- new id,string[1000];
- if(prachy[i] == 1)
- {
- if(strcmp(text, "sFgO6ADSgHA",true) == 0)
- {
- GivePlayerMoney(playerid,50000);
- format(string,sizeof(string),"{0099FF}[ Nahodny Text ] {0044FF}Hráč %s napísal ako prvý nahodný text{0044FF} vyhral $5.0000",Jmeno(playerid));
- SendClientMessageToAll(-1,string);
- prachy[i] = 0;
- return 1;
- }
- }
- if(pawn[i] == 1)
- {
- if(strcmp(text, "GrMrKKz/TnKdLbL",true) == 0)
- {
- GivePlayerMoney(playerid, 1000);
- format(string,sizeof(string),"{0099FF}[ Nahodny Text ] {0044FF}Hráč %s napísal ako prvý nahodný text dostal 1000$",Jmeno(playerid));
- SendClientMessageToAll(-1,string);
- pawn[i] = 0;
- return 1;
- }
- }
- if(slovo[i] == 1)
- {
- if(strcmp(text, "zGsjszgHHHl",true) == 0)
- {
- GivePlayerWeapon(id,26,100);
- format(string,sizeof(string),"{0099FF}[ Nahodny Text ] {0044FF}Hráč %s napísal ako prvý nahodný text {0044FF} dostal sawny",Jmeno(playerid));
- SendClientMessageToAll(-1,string);
- slovo[i] = 0;
- return 1;
- }
- }
- if(txt[i] == 1)
- {
- if(strcmp(text, "gRZJfsfI",true) == 0)
- {
- SetPlayerHealth(id, 100);
- SetPlayerArmour(id, 100);
- GivePlayerMoney(playerid,100000000);
- format(string,sizeof(string),"{0099FF}[ Nahodny Text ] {0044FF}Hráč %s napísal ako prvý nahodný text {0044FF}dostal money",Jmeno(playerid));
- SendClientMessageToAll(-1,string);
- txt[i] = 0;
- return 1;
- }
- }
- }
- return 1;
- }
- forward tojejedno(playerid);
- public tojejedno(playerid)
- {
- {
- switch(random(5))
- {
- case 0:
- {
- SendClientMessageToAll(0x1705FAFF, "{0099FF}[ Nahodny Text ] {0044FF}Kto napíše ako prvý {00FF00}' GrMrKKz/TnKdLbL ' {0044FF}dostane 1000$");
- for (new i = 0; i < MAX_PLAYERS; i++)
- {
- prachy[i] = 1;
- }
- }
- case 1:
- {
- SendClientMessageToAll(0xFF0000AA, "{0099FF}[ Nahodny Text ] {0044FF}Kto napíše ako prvý {00FF00}' gRZJfsfI ' {0044FF}dostanes HP + VESTU + MONEY");
- for (new i = 0; i < MAX_PLAYERS; i++)
- {
- slovo[i] = 1;
- }
- }
- case 2:
- {
- SendClientMessageToAll(0x1705FAFF, "{0099FF}[ Nahodny Text ] {0044FF}Kto napíše ako prvý {00FF00}' goJZCvo5 ' {0044FF}dostane HP + Vesta");
- for (new i = 0; i < MAX_PLAYERS; i++)
- {
- txt[i] = 1;
- }
- }
- case 3:
- {
- SendClientMessageToAll(0xFF0000AA, "{0099FF}[ Nahodny Text ] {00FF00}Kto napíše ako prvý {00FF00}' sFgO6ADSgHA ' {0044FF}dostane 50000Money");
- for (new i = 0; i < MAX_PLAYERS; i++)
- {
- pawn[i] = 1;
- }
- }
- }
- }
- return 1;
- }
- stock Jmeno(playerid)
- {
- new n[256];
- GetPlayerName(playerid, n, sizeof(n));
- return n;
- }
- AntiDeAMX()
- {
- new a[][] =
- {
- "Unarmed (Fist)",
- "Brass K"
- };
- #pragma unused a
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement