Ao Morrer no DM dar spawn novamente no DM - HELP PLS
#1

eae galerinha , so iniciante em pawno e to com uma grande duvida , ja pesquisei й nгo achei em local nenhum...

tipo o cara usou /dm , ai ele й setado , e quando й morto ele da spawn , mas eu queria que quando ele fosse morto no dm ele desce spawn novamente no dm , sem precisar usar o comando novamente...

olha o comando:

PHP код:
 if(strcmp(cmdtext,"/Dm",true)==0)
   {
   new 
string[200], pName[MAX_PLAYER_NAME];
   
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
   
format(string,sizeof string,"O Player {00BFFF}%s {FFFFFF}Entrou no Dm {00BFFF}Eagle {FFFFFF}e {00BFFF}Combat{FFFFFF}! Use /Dm!",pName);
   
SendClientMessageToAll(0xFFFFFFAA,string);
   
SetPlayerPos(playerid,1412.639892,-1.787510,1000.924377);
   
SetPlayerInterior(playerid,1);
   
ResetPlayerWeapons(playerid);
   
GivePlayerWeapon(playerid24999);
   
GivePlayerWeapon(playerid27999);
   
SetPlayerHealth(playerid,100);
   
SetPlayerArmour(playerid,100);
   
PlayerPlaySound(playerid10570,0,0); 
depois vou criar o comando /leavedm , mas preciso muito de ajuda nisso
Reply
#2

/bump
Reply
#3

This is the english section.
For help in other languages check here http://forum.sa-mp.com/forumdisplay.php?f=33
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)