Jump to content

IcE.

Membru
  • Posts

    1,094
  • Joined

  • Last visited

Posts posted by IcE.

  1. Nu cred ca e de la asta dar incerca si asta

    //-------------------------------[Login]--------------------------------------------------------------------------
    if (strcmp(cmd, "/login", true) ==0 )
    	{
    	    if(IsPlayerConnected(playerid))
    	    {
    	        new tmppass[64];
    			if(gPlayerLogged[playerid] == 1)
    			{
    				SendClientMessage(playerid, COLOR_BRIGHTRED, "SERVER: You are already logged in.");
    				return 1;
    			}
    			tmp = strtok(cmdtext, idx);
    			if(!strlen(tmp))
    			{
    				SendClientMessage(playerid, COLOR_BRIGHTRED, "USAGE: /login [password]");
    				return 1;
    			}
    			strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
    			OnPlayerLogin(playerid,tmppass);
    		}
    		return 1;
    	}
    asta e pentru login
    //-------------------------------[Register]--------------------------------------------------------------------------
    	if (strcmp(cmd, "/register", true)==0)
    	{
    		tmp = strtok(cmdtext, idx);
    		if(!strlen(tmp))
    		{
    			SendClientMessage(playerid, COLOR_ORANGE, "USAGE: /register [password]");
    			return 1;
    		}
    		if (gPlayerAccount[playerid] == 1)
    		{
    			SendClientMessage(playerid, COLOR_ORANGE, "   Dieser Name ist registriert");
    			return 1;
    		}

    pentru regietr

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.