28.11.2009, 22:34
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:
Thanks for the help people!
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;
}

