SHARE
TWEET

Untitled

Dravizz Apr 14th, 2020 (edited) 831 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     if(!strcmp(cmdtext, "/lrandom", true,8))
  2.     {
  3.         if(playerDB[playerid][aod] != true) return SendClientMessage(playerid, RED, "* Jūs esate išjungęs Administratoriaus komandas!");
  4.         new prz[128],kiek,msgxx[128];
  5.        
  6.         if(!IsNumeric(GetArgument(1, cmdtext, 0))) return SendClientMessage(playerid,  RED, "Pamiršote nurodytį MAX skaičių /lrandom [MAX skaičius] [Tekstas](parašys atvirkšiai)");
  7.         kiek = StringToInt(GetArgument(1, cmdtext, 0));
  8.  
  9.         strmid(prz, GetArgument(2, cmdtext, true), 0, 128);
  10.         if(!strcmp(prz, "0", true)) return SendClientMessage(playerid, RED, "Pamiršote nurodytį tekstą /lrandom [MAX skaičius] [Tekstas](parašys atvirkšiai)");
  11.        
  12.         new skaiciusx = randomEx(1, kiek);
  13.         format(msgxx,sizeof(msgxx),"%s:{FF0000} %s {F81414}%d",GetPlayerNameEx(playerid),prz,skaiciusx);
  14.         SendClientMessageToAll(0xAFAFAFFF,msgxx);
  15.         return 1;
  16.     }
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