23.11.2014, 17:45
I've been making death match minigame, i've got most of it working, but i am having problems with the deaths on it, i wanted it so when you die you spawn back in the deathmatch area with the death match weapon, but i've only got it to spawn back in the area, but doesn't give me the weapon...
If you could help me that would be great!
I have tried multiple ways of it and could only get to spawn.
Код:
public OnPlayerSpawn(playerid) { if(DMDeath[playerid] == 1) { if(GetPlayerState(playerid) == PLAYER_STATE_WASTED) { SetPlayerPos(playerid, 2798.9478,-1467.2285,28.1563); GivePlayerWeapon(playerid, 24, 99999); } } return 1; } public OnPlayerDeath(playerid, killerid, reason) { if(DMM[playerid] == 1) { DMDeath[playerid] = 1; } return 1; }
I have tried multiple ways of it and could only get to spawn.