28.11.2009, 22:38
Add SpawnPlayer(playerid);
Here the code:
Or add it at the end of OnPlayerLogin. I hope it work, if not PM me
Here the code:
Код:
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); SpawnPlayer(playerid); } return 1; }
