[HELP] Player spawn after /login?
#1

I want it like when a player typed /login, the player should spawn without having to choose skins, I am making a RP gamemode.

Basicly that's it, here is my /login command:

Код:
if (strcmp(cmd, "/login", true) ==0)
	{
	  if(IsPlayerConnected(playerid))
	  {
	    new tmppass[64];
			if(gPlayerLogged[playerid] == 1)
			{
				SendClientMessage(playerid, 0xC0C0C0FF, "	You are already logged in.");
				return 1;
			}
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, 0xC0C0C0FF, "	USAGE: /login [password]");
				return 1;
			}
			strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
			String(tmppass);
			OnPlayerLogin(playerid,tmppass);
		}
		return 1;
	}
Thanks for the help people!
Reply


Messages In This Thread
[HELP] Player spawn after /login? - by FreddeN - 28.11.2009, 22:34
Re: [HELP] Player spawn after /login? - by Correlli - 28.11.2009, 22:36
Re: [HELP] Player spawn after /login? - by matute - 28.11.2009, 22:38

Forum Jump:


Users browsing this thread: 1 Guest(s)