17.03.2014, 00:23
Hola , podrian ayudarme a pasar este script de key.... a tipo /comando
Desde ya... muchas gracias
Код:
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; }