how would i convert this command?
#1

how would i convert this command
Код:
  dcmd_register(playerid,params[]) {

    if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"{F81414}Your Already Registered!");
    if (udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"{F81414}Your Registered But Not Logged In Type /login [password]");
    if (strlen(params)==0) return SystemMsg(playerid,"{F81414}USAGE: /register [password]");
    if (udb_Create(PlayerName(playerid),params))
	{
	SystemMsg(playerid,"{6EF83C}Account Created! Now Use /login [password] To Login.");
	}
    return true;

 }

  dcmd_login(playerid,params[]) {

    if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"Your Already Logged In!");
    if (!udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"You Do Not Have An Account, Please /register [password]");
    if (strlen(params)==0) return SystemMsg(playerid,"USAGE: /login [password]");
    if (udb_CheckLogin(PlayerName(playerid),params)) {
       SetPlayerScore(playerid,dUserINT(PlayerName(playerid)).("score"));
  	   SetPlayerMoney(playerid,dUserINT(PlayerName(playerid)).("money"));
  	   vip[playerid] = dUserINT(PlayerName(playerid)).("vip");
       PLAYERLIST_authed[playerid]=true;
   	   registerspawn[playerid] = 1;
	   SystemMsg(playerid,"{6EF83C}Thank you For Logging In Have Fun!");
	   loginspeak[playerid] = 1;

       return 1;
    }
    return SystemMsg(playerid,"{F81414}ERROR : Incorrect Password");
}
i want it into the basic command like

this is a example one

Код:
if (strcmp("/kill", cmdtext, true, 10) == 0)
	{   SetPlayerHealth(playerid,0);
		return 1;
	}
thanks
Reply


Messages In This Thread
how would i convert this command? - by Lethaal - 23.02.2011, 13:37
Re: how would i convert this command? - by davelord - 23.02.2011, 13:55
Re: how would i convert this command? - by Lethaal - 23.02.2011, 14:13
AW: how would i convert this command? - by Nero_3D - 23.02.2011, 14:28
Re: AW: how would i convert this command? - by Lethaal - 23.02.2011, 14:33
Re: AW: how would i convert this command? - by deather - 23.02.2011, 14:35
Re: AW: how would i convert this command? - by Lethaal - 23.02.2011, 14:37

Forum Jump:


Users browsing this thread: 1 Guest(s)