Script Request Thread #5

You help me to create a safe area within tens of meters k guns and attack others that only the police and the other faction use duoc.Toi very thank you, please help me
Reply

Quote:
Originally Posted by Roach_
Посмотреть сообщение
You want to be simple ?
Yes. .
Reply

Quote:
Originally Posted by MadafakaPro
Посмотреть сообщение
Yes. .
Try this:
pawn Код:
/*
 *            DUDB functions
 *       © Copyright 2006-2007 by DracoBlue
 *
 * @version   : 2.4
 * @author    : DracoBlue (http://dracoblue.net)
 * @date      : 8th May 2006
 * @update    : 12th July 2007
 * @require   : DUtils 1.10
 * @require   : DINI 1.5
 *
 * This Unit is provided as is (no warranties).
 * Feel free to use it, a little message in
 * about box is honouring thing, isn't it?
 *
 */


#if defined _dudb_included
  #endinput
#endif

#define _dudb_included
#pragma library dutils

#include <dutils>
#include <dini>
#define dUser(%1).( udb_User(%1,
#define dUserINT(%1).( udb_UserInt(%1,
#define dUserSet(%1).( udb_UserSet(%1,
#define dUserSetINT(%1).( udb_UserSetInt(%1,
#define dUserSetFLOAT(%1).( udb_UserSetFloat(%1,
#define dUserFLOAT(%1).( udb_UserFloat(%1,

stock udb_hash(buf[]) {
    new length=strlen(buf);
    new s1 = 1;
    new s2 = 0;
    new n;
    for (n=0; n<length; n++)
    {
       s1 = (s1 + buf[n]) % 65521;
       s2 = (s2 + s1)     % 65521;
    }
    return (s2 << 16) + s1;
}

stock udb_encode(nickname[]) {
  new tmp[MAX_STRING];
  set(tmp,nickname);
  return tmp;
}

stock udb_decode(nickname[]) {
  new tmp[MAX_STRING];
  set(tmp,nickname);
  return tmp;
}


stock udb_Exists(nickname[]) {
  new tmp[MAX_STRING];
  format(tmp,sizeof(tmp),"%s.dudb.sav",udb_encode(nickname));
  return fexist(tmp);
}


stock udb_Remove(nickname[]) {
  new tmp[MAX_STRING];
  format(tmp,sizeof(tmp),"%s.dudb.sav",udb_encode(nickname));
  return dini_Remove(tmp);
}

stock udb_UserSetInt(nickname[],key[],value) {
  new fname[MAX_STRING];
  format(fname,sizeof(fname),"%s.dudb.sav",udb_encode(nickname));
  return dini_IntSet(fname,key,value);
}

stock udb_UserSetFloat(nickname[],key[],Float:value) {
  new fname[MAX_STRING];
  format(fname,sizeof(fname),"%s.dudb.sav",udb_encode(nickname));
  return dini_FloatSet(fname,key,value);
}

stock udb_UserSet(nickname[],key[],value[]) {
  new fname[MAX_STRING];
  format(fname,sizeof(fname),"%s.dudb.sav",udb_encode(nickname));
  return dini_Set(fname,key,value);
}

stock udb_User(nickname[],key[]) {
  new fname[MAX_STRING];
  format(fname,sizeof(fname),"%s.dudb.sav",udb_encode(nickname));
  format(fname,sizeof(fname),dini_Get(fname,key));
  return fname;
}

stock Float:udb_UserFloat(nickname[],key[]) {
  new fname[MAX_STRING];
  format(fname,sizeof(fname),"%s.dudb.sav",udb_encode(nickname));
  return dini_Float(fname,key);
}

stock udb_UserInt(nickname[],key[]) {
  new fname[MAX_STRING];
  format(fname,sizeof(fname),"%s.dudb.sav",udb_encode(nickname));
  return dini_Int(fname,key);
}

stock udb_CheckLogin(nickname[],pwd[]) {
  new fname[MAX_STRING];
  format(fname,sizeof(fname),"%s.dudb.sav",udb_encode(nickname));
  if (udb_UserInt(nickname,"password_hash")==udb_hash(pwd)) return true;
  return false;
}


stock udb_Create(nickname[],pwd[]) {
  if (udb_Exists(nickname)) return false;
  new fname[MAX_STRING];
  format(fname,sizeof(fname),"%s.dudb.sav",udb_encode(nickname));
  dini_Create(fname);
  udb_UserSetInt(nickname,"password_hash",udb_hash(pwd));
  return true;
}

stock udb_RenameUser(nickname[],newnick[]) {
  new oldfname[MAX_STRING];
  new newfname[MAX_STRING];
  format(oldfname,sizeof(oldfname),"%s.dudb.sav",udb_encode(nickname));
  format(newfname,sizeof(newfname),"%s.dudb.sav",udb_encode(newnick));
  return frenametextfile(oldfname,newfname);
}
Reply

Could any one help me make an MDC with the dialog menu my current one is just nothing but a few commands and text! in the dialog menu could you make it have an
1. Database
2. Issue Warrant
3. Wanted
4. Profile ( Basically shows your name! and custom text i wanna put in)

Could you make it have comments so i can learn off of it! Thanks!
Reply

Hello guys, i want to make my own GameMode.
I know PAWN for Counter-Strike 1.6, and I'm learning C Programing in School.
But PAWN for SA:MP is similar to C+, so i need some help.
Can u give me best to Tutorials step by step for RolePlay MOD.
I found for Register & Log-In Sistem, but i need help what to do next.
I can make Jobs, Organizations Alone.
Please, answer me soon as possible.
Thank you.
Reply

hi. i need a mapper to make me 10 tdm maps

i am willing to pay 5.00 pound each via paypal for them [thats 50 pound]

so you will need paypal go to www.paypal.com

they are for my new server opening soon (3 weeks)

i need whoever is going to map them.. or if 10 people want to map 1 map each [thats fine]

i need you to add my skype andrewgrob2012

the maps i want are call of duty style

so place boxes for cover. create tunnels ect

i am currently creating my first map which i am calling titan tdm

its a spaceship

good luck and thank you & remember a good map takes 3 days or more

dont be asking me to buy a map that has taken 3 mins
Reply

Need fare in zcmd
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)