Originally Posted by Sky_.
pawn Код:
if(strcmp(cmdtext,"/vidat",true)==0) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); if(logged[playerid] == 1) { if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pORG] >= 1 ) { for(new i = 0; i < MAX_PLAYERS; i ++) if(IsPlayerConnected(giveplayerid)) { GetPlayerName(giveplayerid, giveplayer,sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "BGTCMD: O admin ou ORG %s Deu Vida para todos perto dele ", sendername, giveplayer, giveplayerid); SendClientMessage(i, 0x00FF00AA, string); } else { } } else { SendClientMessage(playerid, COLOR_RED, "Vocк nгo tem permissгo para usar este comando!"); return 1; } } else { SendClientMessage(playerid, COLOR_RED, "Vocк tem que estar logado para usar este comando!"); } new Float:POS[3]; GetPlayerPos(playerid,POS[0],POS[1],POS[2]); for(new i = 0, x = GetMaxPlayers(); i != x; ++i) { if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i,30,POS[0],POS[1],POS[2])) { SetPlayerHealth(i,100); } } return 1; }
e colete
pawn Код:
if(strcmp(cmdtext,"/coletet",true)==0) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); if(logged[playerid] == 1) { if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pORG] >= 1 ) { for(new i = 0; i < MAX_PLAYERS; i ++) if(IsPlayerConnected(giveplayerid)) { GetPlayerName(giveplayerid, giveplayer,sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "BGTCMD: O admin ou ORG %s Deu colete para todos perto dele", sendername, giveplayer, giveplayerid); SendClientMessage(i, 0x00FF00AA, string); } else { } } else { SendClientMessage(playerid, COLOR_RED, "Vocк nгo tem permissгo para usar este comando!"); return 1; } } else { SendClientMessage(playerid, COLOR_RED, "vocк tem que estar logado para usar este comando!"); } new Float:POS[3]; GetPlayerPos(playerid,POS[0],POS[1],POS[2]); for(new i = 0, x = GetMaxPlayers(); i != x; ++i) { if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i,30,POS[0],POS[1],POS[2])) { SetPlayerArmour(i,100); } } return 1; }
|