05.09.2010, 10:08
okay, thanks, but i have NO IDEA how to add that -.-
Please, a last time: can anyone inject it into my script?
Please, a last time: can anyone inject it into my script?
Код:
if(strcmp("/catch", cmdtext, true, 10) ==0) { if(AccInfo[playerid][hns] == 1) { if(GetDistanceFromMeToPoint(GetPlayerPos(playerid,x,y,z), player1) <= 50) { if(GetPlayerTeam(playerid) == GetPlayerTeam(player1)) { SendClientMessage(playerid,red,"Error, you can't catch your own Teammember!"); return 1; } else { SendClientMessage(playerid,red,"You Caughted %s. You earned +1 Score and 2000$!" ,playername); SendClientMessage(playerid,red,"You got caught by %s . Next time pay more attention to those Players!" ,playername); SetPlayerSpecialAction(player1,SPECIAL_ACTION_HANDSUP); GameTextForPlayer(player1,"~r~Caught by %s",3000,3, playername); SpawnPlayer(player1); return 1; } } else { SendClientMessage(playerid,red,"Error: There's no Enemie you could catch!"); return 1; } } else { SendClientMessage(playerid,red,"Sorry Dude, you have to be in ''Hide'n'Seak to use this cmd!"); return 1; } }