28.07.2012, 05:04
Vejam, tenho um comando de /tapa que funciona aqui normalmente, mais quero apenas colocar eles para players logados na rcon, preciso da ajuda de vocкs que coloquem apenas para admins.
Por favor, nada de zcmd. apenas strcmp.
Por favor, nada de zcmd. apenas strcmp.
Quote:
if(strcmp(cmd, "/tapa", true) == 0) { new tmp[256]; tmp = strtok(cmdtext, idx); if(strlen(tmp) == 0) return SendClientMessage(playerid, VERDE, "[SERVER] : /tapa [playerid]"); new nome[30],Gabi[200],giveplayer[MAX_PLAYERS],giveplayerid; GetPlayerName(playerid,nome,sizeof(nome)); GetPlayerName(giveplayerid,giveplayer,sizeof(givep layer)); format(Gabi,sizeof(Gabi),"[SERVER] : %s de uma tapa no player %s !",nome,giveplayer); SendClientMessageToAll(ROXOCLARO,Gabi); new Float,Float:y,Float:w; GetPlayerPos(giveplayerid,x,y,w); SetPlayerPos(giveplayerid,x,y,w+10); return 1; } |