SHARE
TWEET

Untitled

a guest Apr 25th, 2018 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Ganz Oben//
  2. #if !defined gpci
  3.     native gpci(playerid, serial[], len);
  4. //OnPlayerConnect
  5.     if(fexist(GetPlayerSerialINI(playerid)))
  6.     {
  7.         ShowPlayerDialog(playerid,D_BANGRUND,DIALOG_STYLE_MSGBOX,"Permanenter Ausschluss!!","Du wurdest permanent         ausgeschlossen!","ok","");
  8.         Kick(playerid);
  9.     }
  10. //command
  11. ocmd:pban(playerid,prams[])
  12. {
  13.     new pID;
  14.     if(sscanf(params,"u",pID))return SendClientMessage(playerid,0xFFA300FF, "BENUTZUNG: /pban <SpielerID");
  15.     if(INI_Open(GetPlayerSerialINI(pID)))
  16.     {
  17.         INI_WriteInt("Banned",1);
  18.         INI_Save();
  19.         INI_Close();
  20.     }
  21.     return 1;
  22. }
  23. //stocks
  24. stock GetPlayerSerial(playerid)
  25. {
  26.     new serial[512];
  27.     gpci(playerid,serial,sizeof(serial));
  28.     return serial;
  29. }
  30.  
  31. stock GetPlayerSerialINI(playerid)
  32. {
  33.     new serialini[512];
  34.     format(serialini,sizeof(serialini),"Serialbans/%s.sb",GetPlayerSerial(playerid));
  35.     return serialini;
  36. }
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