[AYUDA] Convertir una accion por KEY a ser un comando
#1

Hola , podrian ayudarme a pasar este script de key.... a tipo /comando
Код:
	if(newkeys & KEY_SPRINT && gTeam[playerid] == TEAM_HUMAN && PlayerInfo[playerid][Explosive] == 1)
		{
        new string[256];
        new Float:xx,Float:yy,Float:zz;
        new victimid = GetClosestPlayer(playerid);
        if(IsPlayerConnected(victimid))
        if(gTeam[victimid] == TEAM_ZOMBIE || gTeam[victimid] == TEAM_ZOMBIE)
        {
        if(GetDistanceBetweenPlayers(playerid, victimid) < 2)
        {
        SetPlayerColor(playerid, Amarillo);
        SetPlayerHealth(playerid,100);
        SetTimerEx("Listo", 300000, true, "i", playerid);
  		GetPlayerPos(playerid, xx, yy, zz);
  		SetPlayerHealth(victimid,100);
		}
		for(new a=0;a<20;a++)
        {
       	CreateExplosion(xx, yy ,zz, 6, 20.0);
        GameTextForPlayer(victimid,"~n~~r~~h~~h~Explosive~N~~W~Heart~W~:Bo0om!!", 6000, 5);
       	format(string, sizeof(string), "~n~~r~~h~~h~+40 SCORE~N~~W~+ $100~n~~n~~r~~h~victima: ~B~~h~~h~%s",PlayerName2(victimid));
        GameTextForPlayer(playerid,string, 6000, 5);
        GivePlayerMoney(playerid, 100);
        SetPlayerScore(playerid, GetPlayerScore(playerid) + 40);
        }
        }
		return 1;
    }
Desde ya... muchas gracias
Reply


Messages In This Thread
[AYUDA] Convertir una accion por KEY a ser un comando - by alfredo[TgR] - 17.03.2014, 00:23
Respuesta: [AYUDA] Convertir una accion por KEY a ser un comando - by TheChaoz - 17.03.2014, 02:56

Forum Jump:


Users browsing this thread: 1 Guest(s)