OtaconEvil

[FUNCTION] gpci

Dec 10th, 2013
490
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. native gpci ( playerid, serial [ ], maxlen );
  2. #include <a_samp>
  3. static SERIAL[MAX_PLAYERS][25];
  4.  
  5. public OnPlayerConnect(playerid){
  6.     MaxUser(playerid);
  7.     return true;
  8. }
  9. stock MaxUser(playerid){
  10.     gpci(playerid,SERIAL[playerid],24);
  11.     for(new player, user = GetMaxPlayers(); player != user; player++){
  12.         if(IsPlayerConnected(player) && (player!=playerid)){
  13.             if(!strcmp(SERIAL[playerid], SERIAL[player], true, 24)){Kick(playerid);} }
  14.     } return true;
  15. }
RAW Paste Data