(Really easy to answer)
#4

It is an if statement. Here's the command (all credits to dracoblue's tut)

pawn Код:
dcmd_register(playerid,params[]) {
  if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"Already logged in !");
  if (udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"Account already exists, please use '/login password'.");
  if (strlen(params)==0) return SystemMsg(playerid,"Correct usage: '/register password'");
  if (udb_Create(PlayerName(playerid),params)) return SystemMsg(playerid,"Account successfully created. Login with '/login password' now.") && SetJob(playerid, 9);
  return true;

 }
Reply


Messages In This Thread
(Really easy to answer) - by coole210 - 27.06.2009, 14:58
Re: (Really easy to answer) - by illay - 27.06.2009, 14:59
Re: (Really easy to answer) - by Grim_ - 27.06.2009, 15:01
Re: (Really easy to answer) - by coole210 - 27.06.2009, 16:15

Forum Jump:


Users browsing this thread: 1 Guest(s)