[Ajuda] comando
#6

PHP код:
// Essa parte vocк coloca no lugar do seu comando
if (strcmp("/morrer"cmdtexttrue) == 0

    
SetPlayerHealth(playerid0); 
    
GivePlayerMoney(playerid, -100); 
    
SendClientMessage(playerid0xFFFF00FF"Vocк morreu e perdeu R$100"); 
    
SetPVarInt(playerid"death_by_cmd"1);
    return 
1

// Essa parte no comeзo da public OnPlayerSpawn
if(GetPVarInt(playerid"death_by_cmd")) 

    
SetPlayerPos(playerid0.00.00.0);
    
SetPVarInt(playerid"death_by_cmd"0);
    return 
1

Reply


Messages In This Thread
comando - by macacoSamp - 03.04.2016, 03:45
Re: comando - by 99fe3rnando - 03.04.2016, 04:23
Re: comando - by ShOwD - 03.04.2016, 11:06
Re: comando - by ApocaSamp - 03.04.2016, 11:19
Re: comando - by macacoSamp - 03.04.2016, 21:58
Re: comando - by WooPz - 03.04.2016, 23:05
Re: comando - by macacoSamp - 04.04.2016, 19:41
Re: comando - by F1N4L - 04.04.2016, 19:48

Forum Jump:


Users browsing this thread: 1 Guest(s)