Can someone know how to not automatic death?
#3

WHat is this? it comes out error
Quote:

public OnPlayerSpawn(playerid)
{
TogglePlayerSpectating(playerid, false);
// Anti F4 Bug - Logging/Registering
if(!PlayerInfo[playerid][pLoggedIn] && !IsPlayerNPC(playerid))
{
if(IsPlayerNPC(playerid)) return 1;
SetPlayerJoinCamera(playerid);
SetSpawnInfo( playerid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
new file[64];
format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
// Player isn't banned
if(dini_Int(file, "AdminAccount") == 1)
{
format(file, sizeof(file), "users/%s.ini",RPNU(playerid));
SetPlayerName(playerid, dini_Get(file, "OldName"));
format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
ShowDialog(playerid, 2);
}
if(!dini_Exists(file))
{
ShowDialog(playerid, 1);
return 1;
}
else
{
ShowDialog(playerid, 2);
}
return 1;
}

and another one
Quote:

public OnPlayerDeath(playerid, killerid, reason)
{
if(IsPlayerLoggedIn(playerid))
{
if(g_bIsRobbiz[playerid])
{
DisablePlayerCheckpoint(playerid);
DestroyObject(g_robbizBag[playerid]);
g_apprehendedCash[playerid] = 0;
g_bIsRobbiz[playerid] = false;
new copMessage[64];
format(copMessage, sizeof(copMessage), "** %s has been hospitalized and failed the business robbery.", RPN(playerid));
SendCopMessage(COLOR_BLUE, copMessage);
}

Reply


Messages In This Thread
Can someone know how to not automatic death? - by Jardzskiiz - 30.05.2013, 05:35
Re: Can someone know how to not automatic death? - by GiamPy. - 30.05.2013, 11:06
Re: Can someone know how to not automatic death? - by Jardzskiiz - 30.05.2013, 11:21
Re: Can someone know how to not automatic death? - by GiamPy. - 30.05.2013, 11:23
Re: Can someone know how to not automatic death? - by Jardzskiiz - 30.05.2013, 11:32
Re: Can someone know how to not automatic death? - by GiamPy. - 30.05.2013, 11:35
Re: Can someone know how to not automatic death? - by Jardzskiiz - 30.05.2013, 11:39

Forum Jump:


Users browsing this thread: 1 Guest(s)