Player Death Spawn
#1

Hello again.
Ye ive got a 2. Problem....
I have got a script that saves and loads my positions when i join/Exit the Server.
And evertime ive died, it spawns me to the last Position (where ive left the Server).
Now ive edited it a Little bit but "IsPlayerDead" seems to have no function.. any help would be nice

PHP код:
new IsPlayerDeath[MAX_PLAYERS];
public 
OnPlayerSpawn(playerid)
{
    if(!
dini_Exists(FileStats(playerid)))
    {
        
SetPlayerPos(playerid,1081.1833,-1697.3507,13.5469);
        return 
1;
    }
    if(
IsPlayerDeath[playerid] == 1)
    {
        
GivePlayerMoney(playerid, -45);
        
SetPlayerPos(playerid,1172.7595,-1323.5958,15.4011);
        return 
1;
    }
    else
    
SetPlayerPos(playerid,positionx,positiony,positionz);
    return 
1;

Reply


Messages In This Thread
Player Death Spawn - by Pepino960 - 16.04.2014, 20:49
Re: Player Death Spawn - by J4mmyHD - 16.04.2014, 20:58
AW: Player Death Spawn - by Pepino960 - 16.04.2014, 21:17
AW: Player Death Spawn - by Pepino960 - 16.04.2014, 21:19
Re: AW: Player Death Spawn - by Bingo - 16.04.2014, 21:21
Re: Player Death Spawn - by Pepino960 - 16.04.2014, 21:31
Re: Player Death Spawn - by Bingo - 16.04.2014, 21:34
Re: Player Death Spawn - by Pepino960 - 16.04.2014, 21:40

Forum Jump:


Users browsing this thread: 1 Guest(s)