spawn button.
#1

when i am login a server spawn button dosent show. when i am enter my pass and press enter the spawn button is show, and i need to click spawn..(the charactart spawn, (i hear fall sounds), but i need to press spawn. how i can remove this?
Reply
#2

Change the return from OnPlayerRequestSpawn(playerid) to 0.

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    return 0;
}
Reply
#3

its do, when i am clink in spawn after enter my password, the character dosent spawn
Reply
#4

Quote:
Originally Posted by n00el
Посмотреть сообщение
its do, when i am clink in spawn after enter my password, the character dosent spawn
You have to set a spawn place.
Reply
#5

After they log in, add SpawnPlayer(playerid)
Reply
#6

Quote:
Originally Posted by n00el
Посмотреть сообщение
its do, when i am clink in spawn after enter my password, the character dosent spawn
OnPlayerConnect, try:
pawn Код:
SetSpawnInfo( playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0 );
Reply
#7

on player connect
PHP код:
    mysql_format(sqldbquerysizeof(query), "SELECT * FROM users WHERE nev = '%e' LIMIT 0,1"GetName(playerid));
    
mysql_tquery(sqldbquery"LogRegCheck""i"playerid); 
LogRegCheck:
if rows, ShowPlayerDialog login dialog..
if !rows kick player, i have a php register system..

login dialog:
PHP код:
    if(dialogid == LOGIN_DIALOG)
    {
        if(!
response) return Kick(playerid);
        if(!
strlen(inputtext)) return ShowPlayerDialog(playeridLOGIN_DIALOGDIALOG_STYLE_PASSWORD"Red River RPG""Нrd be a jelszvad a folytatбshoz!""Tovбbb""Mйgsem");
        if(
strcmp(inputtextPlayerInfo[playerid][pJelszo], true) == 0)
        {
            
PlayerTextDrawShow(playeridPlayerText:LGRPG);
            
SendClientMessage(playeridCOLOR_SIKERES"Sikeres bejelentkezйs!");
               
SpawnPlayer(playerid);
        }
        else
        {
            
SendClientMessage(playeridCOLOR_ADMWARN"Rossz jelszу!");
            
ShowPlayerDialog(playeridLOGIN_DIALOGDIALOG_STYLE_PASSWORD"Red River RPG""Нrd be a jelszvad a folytatбshoz!""Tovбbb""Mйgsem");
        }
        return 
1;
    } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)