Questions
#3

im bored so ill throw you something

paste this underneath "public OnPlayerCommandText"

Код:
new cmd[128], idx;
cmd = strtok(cmdtext, idx);

if (strcmp(cmd, "/explode",true) ==0)
{
  new tmp;
  tmp = strval(cmdtext, idx);
  if(!strval(tmp)) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /explode [player ID]");
  if(IsPlayerConnected(tmp))
  {
    new Float:x, Float:y, Float:z;
    GetPlayerPos(tmp, Float:x, Float:y, Float:z);
    CreateExplosion(Float:x, Float:y, Float:z, 2, 10.0);
  }
  else return SendClientMessage(playerid, 0xFF0000AA, "That player ID is not online right now");
}
Reply


Messages In This Thread
Questions - by Oveus - 19.07.2009, 23:59
Re: Questions - by Correlli - 20.07.2009, 02:01
Re: Questions - by Annihalation - 20.07.2009, 03:02
Re: Questions - by braduz - 21.01.2010, 19:11

Forum Jump:


Users browsing this thread: 1 Guest(s)