Help OnPlayerDeath
#1

Hi guys i've make dm arena
Код HTML:
COMMAND:dmpirate(playerid, params[])
{
     new string[600],pname[MAX_PLAYER_NAME];
     GetPlayerName(playerid, pname, sizeof(pname)); 
     if(IsPlayerInDM[playerid] == 1) return SendClientMessage(playerid, COLOR_ORANGE, "Tu es deja dans le dm Pirate, fait /dmpirateq pour le quitter");
     IsPlayerInDM[playerid] = 1; 
     format(string, sizeof(string), "%s A rejoint le /dmpirate, rejoignez le !", pname);
     SendClientMessageToAll(COLOR_ORANGE, string);
     SendClientMessage(playerid, COLOR_ORANGE, "Tu as rejoint le dm pirate");
     SetPlayerPos(playerid, -2050.0810547,-7609.0312500,2.2020721);
     ResetPlayerWeapons(playerid);
	 GivePlayerWeapon(playerid, 26, 900);
	 GivePlayerWeapon(playerid, 24, 900);
     SetPlayerFacingAngle(playerid, 0);
     return 1;
}
But when the player dead he don't respawn at, i've tried lots of code in "OnPlayerDeath" but that don't work, have u solutions ?

Srry for my bad english #France
Reply


Messages In This Thread
Help OnPlayerDeath - by EclipseWho - 22.06.2016, 20:09
Re: Help OnPlayerDeath - by Dayrion - 22.06.2016, 20:23
Re: Help OnPlayerDeath - by Lynn - 22.06.2016, 21:12
Re: Help OnPlayerDeath - by Dayrion - 22.06.2016, 21:24
Re: Help OnPlayerDeath - by Lynn - 22.06.2016, 21:26
Re: Help OnPlayerDeath - by Dayrion - 22.06.2016, 21:27
Re: Help OnPlayerDeath - by Lynn - 22.06.2016, 21:33
Re: Help OnPlayerDeath - by Vince - 22.06.2016, 21:43
Re: Help OnPlayerDeath - by Stinged - 22.06.2016, 21:44
Re: Help OnPlayerDeath - by EclipseWho - 23.06.2016, 22:24

Forum Jump:


Users browsing this thread: 2 Guest(s)