Need some help with command /random
#4

pawn Код:
if (strcmp("/random", cmdtext, true, 10) == 0)
{
  if(IsPlayerAdmin(playerid))
  {
    new str[128];
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,playername,sizeof(playername));
    new hit = random(14);
    format(str,sizeof(str),"%s:/hit %d 1000",playername,hit);
    SendClientMessageToAll(0xFFFFFFAA,str);
  }
  return 1;
}
This should work
Reply


Messages In This Thread
Need some help with command /random - by zwartebanaan - 06.02.2009, 05:20
Re: Need some help with command /random - by Auto-Sized - 06.02.2009, 10:56
Re: Need some help with command /random - by zwartebanaan - 06.02.2009, 11:21
Re: Need some help with command /random - by CracK - 06.02.2009, 12:12
Re: Need some help with command /random - by Streetplaya - 06.02.2009, 12:18
Re: Need some help with command /random - by MenaceX^ - 06.02.2009, 12:20
Re: Need some help with command /random - by Streetplaya - 06.02.2009, 13:10
Re: Need some help with command /random - by CracK - 06.02.2009, 13:20
Re: Need some help with command /random - by Streetplaya - 06.02.2009, 13:23
Re: Need some help with command /random - by CracK - 06.02.2009, 14:12

Forum Jump:


Users browsing this thread: 1 Guest(s)