[AJUDA]Bomba
#2

PHP код:
//COLOQUE ISTO NO TOPO DO GAME MODE \/
new Bomba[MAX_PLAYERS];
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp("/comprarbomba"cmdtexttrue10) == 0)
    {
        if(
GetPlayerMoney(playerid)<50000)return SendClientMessage(playeridAZULCLARINHO,"{FF5959}| ERRO |{FFFFFF} Vocк Nгo Tem {FF5959}${FFFFFF}50000!");
        
SetPlayerAttachedObject(playerid,2,1654,1,0.1000,0.2000,0.0000,0.0,90.0000,180.0000);
        
GivePlayerMoney(playerid, -50000);
        
SendClientMessage(playeridBRANCO,"{FF5959}| INFO |{FFFFFF} Vocк Comprou Uma Bomba!");
        
Bomba[playerid] ++;
        return 
1;
    }
    if(
strcmp("/explodirbomba"cmdtexttrue10) == 0)
    {
        if(
Bomba[playerid] == 0) return SendClientMessage(playeridBRANCO,"Vocк nгo comprou nenhuma bomba !");
        
Bomba[playerid] --;
        new 
Float:xFloat:yFloat:z;
        
GetPlayerPos(playeridxyz);
        
CreateExplosion(xyz1110.0);
        
SendClientMessage(playeridBRANCO,"{FF5959}| INFO |{FFFFFF} Vocк Se Explodiu! {FF5959}RAIIRAIRAIIRAIAR{FFFFFF}");
        return 
1;
    }
    return 
0;

Mande-nos o seu sistema de salvamente para que assim possamos salvar a quantidade de bombas que o player tem e quando ele relogar ficar com este mesmo numero. =D
Reply


Messages In This Thread
[AJUDA]Bomba - by FreeGellsTSSA - 07.06.2011, 19:28
Re: [AJUDA]Bomba - by Shadoww5 - 07.06.2011, 19:40
Re: [AJUDA]Bomba - by FreeGellsTSSA - 07.06.2011, 19:46
Re: [AJUDA]Bomba - by zbt_Daimyo - 07.06.2011, 19:48
Re: [AJUDA]Bomba - by Shadoww5 - 07.06.2011, 19:50
Re: [AJUDA]Bomba - by FreeGellsTSSA - 07.06.2011, 20:13
Re: [AJUDA]Bomba - by Shadoww5 - 07.06.2011, 20:26
Re: [AJUDA]Bomba - by FreeGellsTSSA - 07.06.2011, 20:30
Re: [AJUDA]Bomba - by Shadoww5 - 07.06.2011, 20:35
Re: [AJUDA]Bomba - by Shadoww5 - 07.06.2011, 20:57

Forum Jump:


Users browsing this thread: 3 Guest(s)