16.04.2014, 20:49
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
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;
}