19.09.2015, 01:20
(
Последний раз редактировалось saffierr; 19.09.2015 в 02:04.
)
If the player dies in the Paintball I made, he respawns at the spawning point where he spawned in the login.
So, how do I make it like, when he dies in the Paintball area, he keep respawning in the Paintball area until he leaves the paintball area.
code:
If more codes are needed, feel free to ask.
Edit: I atleast tried it, but its bugged as hell, so keep sticked to my question.
The tried thingy;;
So, how do I make it like, when he dies in the Paintball area, he keep respawning in the Paintball area until he leaves the paintball area.
code:
PHP код:
if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, COLOR_RED, "Error: You need $1000 to enter the Paintball area.");
GivePlayerMoney(playerid, -1000);
SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875);
SendClientMessage(playerid, COLOR_YELLOW, "You have entered the Paintball area, have fun!");
SetPlayerVirtualWorld(playerid, VW_PAINTBALL);
SetPlayerInterior(playerid, 10);
Edit: I atleast tried it, but its bugged as hell, so keep sticked to my question.
The tried thingy;;
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(GetPlayerInterior(playerid) == 10)
SetSpawnInfo(playerid, 0, 0, -975.975708,1060.983032,1345.671875, 270, 24, 50000, 25, 50000, 28, 50000);
SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875);
SetPlayerVirtualWorld(playerid, VW_PAINTBALL);
SetPlayerInterior(playerid, 10);
SendDeathMessage(killerid, playerid, reason);