OnPlayerDeath
#9

this is the Login system.
pawn Код:
case DIALOG_LOGIN:
        {
            if ( !response ) return Kick ( playerid );
            if( response )
            {
                if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
                {
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
                }
                else
                {
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"You have entered an incorrect password.\n"COL_WHITE"Type your password below to login.","Login","Quit");
                }
                return 1;
            }
        }
And this is on playerrequestspawn
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if(PlayerInfo[playerid][pTeam] == 1)
    {
        SendClientMessage(playerid, COLOR_RED, "Welcome, You are Terrorist now. Keep Killing Counter Terrorists.");
        SendClientMessage(playerid, COLOR_GREY, "Use /commands to vieuw all commands!");
        SetSpawnInfo( playerid, 0, 294, 195.5586, 427.2332, 12.7379, 269.15, 0, 0, 0, 0, 24, 50 );
        SpawnPlayer(playerid);
        TogglePlayerControllable(playerid,1);
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetTimerEx("Unfreeze", 5000, false, "i", RPN(playerid));
        return 0;
    }
    else if(PlayerInfo[playerid][pTeam] == 2)
    {
        SendClientMessage(playerid, COLOR_BLUE, "Welcome, You are an Counter Terrorist now. Keep Killing Terrorists.");
        SendClientMessage(playerid, COLOR_GREY, "Use /commands to vieuw all commands!");
        SetSpawnInfo( playerid, 0, 285, 49.1121, 423.5605, 12.7379, 269.15, 0, 0, 0, 0, 24, 50 );
        SpawnPlayer(playerid);
        TogglePlayerControllable(playerid,1);
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetTimerEx("Unfreeze", 5000, false, "i", RPN(playerid));
        return 0;
    }
    return 1;
}
So what do i have to do exactly?
Reply


Messages In This Thread
OnPlayerDeath - by faff - 02.04.2013, 10:34
Re: OnPlayerDeath - by RajatPawar - 02.04.2013, 10:40
Re: OnPlayerDeath - by faff - 02.04.2013, 11:13
Re: OnPlayerDeath - by Konstantinos - 02.04.2013, 11:18
Re: OnPlayerDeath - by faff - 02.04.2013, 11:22
Re: OnPlayerDeath - by Konstantinos - 02.04.2013, 11:24
Re: OnPlayerDeath - by faff - 02.04.2013, 11:25
Re: OnPlayerDeath - by Hanger - 02.04.2013, 11:54
Re: OnPlayerDeath - by faff - 02.04.2013, 11:59
Re: OnPlayerDeath - by Konstantinos - 02.04.2013, 12:02
Re: OnPlayerDeath - by faff - 02.04.2013, 12:06
Re: OnPlayerDeath - by Hanger - 02.04.2013, 12:08
Re: OnPlayerDeath - by Konstantinos - 02.04.2013, 12:15
Re: OnPlayerDeath - by faff - 02.04.2013, 12:26
Re: OnPlayerDeath - by Konstantinos - 02.04.2013, 12:32
Re: OnPlayerDeath - by faff - 02.04.2013, 12:35
Re: OnPlayerDeath - by Konstantinos - 02.04.2013, 13:55
Re: OnPlayerDeath - by faff - 02.04.2013, 14:10
Re: OnPlayerDeath - by Konstantinos - 02.04.2013, 14:15
Re: OnPlayerDeath - by faff - 02.04.2013, 14:35
Re: OnPlayerDeath - by Konstantinos - 02.04.2013, 14:40
Re: OnPlayerDeath - by Abhishek. - 02.04.2013, 14:46
Re: OnPlayerDeath - by faff - 02.04.2013, 15:02

Forum Jump:


Users browsing this thread: 3 Guest(s)