Posts: 229
Threads: 37
Joined: Jan 2010
Reputation:
0
I have tried my best, but it still doesnt work..
Everytime I die, I am getting teleported to the hospital, then spawn at the starting position..
Suggestions?
Posts: 6,340
Threads: 58
Joined: May 2009
Reputation:
0
You'll need to show some code if you want help.
Posts: 229
Threads: 37
Joined: Jan 2010
Reputation:
0
public OnPlayerDeath(playerid, killerid, reason)
{
SendClientMessage(playerid,0xFFCC00,"You died,The hospital takes 100 dollars from you for the health threatment");
SendClientMessage(playerid,0xFFCC00,"They also take another 50 dollars because of the ride back to four dragons");
GivePlayerMoney(playerid,-150);
SetPlayerPos(playerid, 1607.2252, 1819.2676, 10.8280);
This is what I have so far..
Posts: 6,340
Threads: 58
Joined: May 2009
Reputation:
0
You should set player's position to hospital at OnPlayerSpawn callback, not OnPlayerDeath. But make some variable for players which you'll set to true when he dies and you'll check if it's setted to true at OnPlayerSpawn callback - and if it is, then set his position to hospital.
Posts: 6,340
Threads: 58
Joined: May 2009
Reputation:
0
It's not my fault if you don't know how and where to use the code.
Posts: 6,340
Threads: 58
Joined: May 2009
Reputation:
0
Another immature kid? Suck off pal.
He wanted a code, i gave him a code. He wants to learn PAWN but he doesn't want to read, so what should i do? I can't force him to read the manual.
And if you're talking about idiots, look at yourself first and you'll find a good idiot.
Posts: 6,340
Threads: 58
Joined: May 2009
Reputation:
0
I have only one thing for you: grow up and don't act like a child. Don't live your life on the internet Mr. e-gangsta. =)