Help with Pawno
#1

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?
Reply
#2

TogglePlayerSpectating(playerid, true) for toggling spawn buttons.

For OnPlayerDeath, show us code.
Reply
#3

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
Reply
#4

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?
Reply
#5

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.
Reply
#6

Show the code for Spawn_Ospedali(playerid)
Reply
#7

Guess who's back...back again...Shady's back...tell a friend....

As willbedie said, show us Spawn_Ospedali.
Reply
#8

Return 0 on OnPlayerRequesClass to get rid of the keys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)