Posts: 17
Threads: 4
Joined: Dec 2015
Reputation:
0
You can help me please with pawno, I have a problem ... when I connect, or OnPlayerConnect, I put a checkplayer, but when I put the password to enter I get out the keys '<> Spawn', how do I remove the keys ?
And then when I die, I included that you teleport to the various hospitals randomly, but when I die, I regenerated at RedCounty in the air and fell.
Can you help me please?
Posts: 716
Threads: 92
Joined: May 2018
TogglePlayerSpectating(playerid, true) for toggling spawn buttons.
For OnPlayerDeath, show us code.
Posts: 17
Threads: 4
Joined: Dec 2015
Reputation:
0
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
GameTextForPlayer(playerid, "Sei Morto", getSEC(4), 2);
Playermorto[playerid] = 1;
return 1;
}
public OnPlayerSpawn(playerid)
{
if(Playermorto[playerid] == 1)
{
Spawn_Ospedali(playerid);
TakeSoldi(playerid);
//~~~~~~~~~~~~~~~~~~~[ Setta salute / armatura ]
SetPlayerArmour(playerid, 0.0);
SetPlayerHealth(playerid, 100.0);
GameTextForPlayer(playerid, "~n~", 10, 2);
Playermorto[playerid] = 0;
}
return 1;
}
Then the first death I do is very fast and I have the word 'Sei Morto'.
With the second death, it spawna to redcounty but start to fall.
How do I set that when I die, does the writing and the typical animation of when it dies come out?
And the spawn teleports to random in any hospital?
Posts: 17
Threads: 4
Joined: Dec 2015
Reputation:
0
Then I have another problem with my recording system, I can not set OnPlayerRequestClass and OnPlayerRequestSpawn, like when you do / gmx, with my system there is the possibility to login automatically, but when I do / gmx it comes out that to enter the game I have to click <,> or Spawn.
Posts: 540
Threads: 35
Joined: Feb 2016
Reputation:
0
Show the code for Spawn_Ospedali(playerid)
Posts: 716
Threads: 92
Joined: May 2018
Guess who's back...back again...Shady's back...tell a friend....
As willbedie said, show us Spawn_Ospedali.
Posts: 1,794
Threads: 104
Joined: Feb 2012
Reputation:
0
Return 0 on OnPlayerRequesClass to get rid of the keys.