Help with Pawno -
DarkWorldJack - 11.10.2018
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?
Re: Help with Pawno -
KinderClans - 11.10.2018
TogglePlayerSpectating(playerid, true) for toggling spawn buttons.
For OnPlayerDeath, show us code.
Re: Help with Pawno -
v1k1nG - 11.10.2018
Quote:
Originally Posted by DarkWorldJack
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?
|
Anyways we are italians so if you need help send a PM
Re: Help with Pawno -
DarkWorldJack - 11.10.2018
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?
Re: Help with Pawno -
DarkWorldJack - 11.10.2018
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.
Re: Help with Pawno -
solstice_ - 11.10.2018
Show the code for
Spawn_Ospedali(playerid)
Re: Help with Pawno -
KinderClans - 11.10.2018
Guess who's back...back again...Shady's back...tell a friend....
As willbedie said, show us Spawn_Ospedali.
Re: Help with Pawno -
Beckett - 12.10.2018
Return 0 on OnPlayerRequesClass to get rid of the keys.