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"); }
if (strcmp("/kill", cmdtext, true, 10) == 0) { SetPlayerHealth(playerid,0); return 1; }
read the dcmd macro and understand it, afterwards it should be to hard to do that
But I advice to zcmd and sscanf 2.0 |
read the dcmd macro and understand it, afterwards it should be to hard to do that |
k but i rly just need these 2 cmds converted how long would it take 2 convert it?
|
It depends on how good & fast you are in understanding the dcmd macro.
|