[Ajuda] Bangu
#2

PHP код:
forward Soltar(playerid);
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmd"/bangu"true) == 0)
    {
        new 
tmp[256], presotempoaname[MAX_PLAYER_NAME], name[MAX_PLAYER_NAME];
        
tmp strtok(cmdtextidx);
        
preso strval(tmp);
        
tmp strtok(cmdtextidx);
        
tempo strval(tmp);
        
GetPlayerName(presoanamesizeof MAX_PLAYER_NAME);
        
GetPlayerName(playeridnamesizeof MAX_PLAYER_NAME);
        if(
strlen(tmp) == 0) return SendClientMessage(playerid0xFFFFFFFF"/bangu [PlayerID] [Tempo]");
        
format(stringsizeof(string), "%s [ID %d] Foi mandado para BANGU pelo Administrador %s."anamepresoname);
        
SendClientMessageToAll(0xFF0000FFstring);
        
SetPlayerHealth(preso100); //Vida
        
ResetPlayerWeapons(preso); //Reset Armas
        
GameTextForPlayer(preso,"~w~Bem vindo para o ~r~BANGU.~n~Repense suas atitudes !",4000,1); //Mensagem
        
SetPlayerPos(preso,-290.6174,1517.4943,75.3593); //Local
        
SetPlayerInterior(preso0); //InteriorID
        
SetPlayerSkin(preso26); //Skin de prisгo
        
SetTimerEx("Soltar"tempofalse"i"preso);
        return 
1;
    }
    return 
0;
}
public 
Soltar(playerid)
{
    
SpawnPlayer(playerid);
    
GameTextForPlayer(playerid,"~w~Vocк acaba de ser solto do ~r~BANGU !",4000,1);
    return 
1;

Reply


Messages In This Thread
[Ajuda] Bangu - by Sr.Pekeno - 26.06.2011, 21:08
Re: [Ajuda] Bangu - by Shadoww5 - 26.06.2011, 21:52
Re: [Ajuda] Bangu - by Sr.Pekeno - 26.06.2011, 22:21
Re: [Ajuda] Bangu - by Shadoww5 - 26.06.2011, 22:25
Re: [Ajuda] Bangu - by Sr.Pekeno - 27.06.2011, 00:19
Re: [Ajuda] Bangu - by Shadoww5 - 27.06.2011, 00:23
Re: [Ajuda] Bangu - by Sr.Pekeno - 27.06.2011, 11:30
Re: [Ajuda] Bangu - by Chefгo - 27.06.2011, 11:34
Re: [Ajuda] Bangu - by Shadoww5 - 27.06.2011, 12:27

Forum Jump:


Users browsing this thread: 2 Guest(s)