[Ajuda] Comando /tapa para Admins.
#4

pawn Код:
if(strcmp(cmd, "/tapa", true) == 0)
{
if(!IsPlayerAdmin(playerid))
  return SendClientMessage(playerid,-1,"[ERRO] Somente Rcon pode usar");
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:x,Float:y,Float:w;
GetPlayerPos(giveplayerid,x,y,w);
SetPlayerPos(giveplayerid,x,y,w+10);


return 1;
}
Reply


Messages In This Thread
[Ajuda] Comando /tapa para Admins. - by Gabriel Santana - 28.07.2012, 05:04
Re: [Ajuda] Comando /tapa para Admins. - by MatriXBorn - 28.07.2012, 05:15
Re: [Ajuda] Comando /tapa para Admins. - by Gabriel Santana - 28.07.2012, 05:40
Re: [Ajuda] Comando /tapa para Admins. - by ipsBruno - 28.07.2012, 05:43
Re: [Ajuda] Comando /tapa para Admins. - by MatriXBorn - 28.07.2012, 05:44
Re: [Ajuda] Comando /tapa para Admins. - by Gabriel Santana - 28.07.2012, 06:37

Forum Jump:


Users browsing this thread: 1 Guest(s)