/giveweapon using names instead of id
#8

i just got errors i need it in this format how would i best convert it

pawn Код:
COMMAND:slap(playerid, params[])
{

    SendAdminText(playerid, "/slap", params);
    {
      new ID;
      if(APlayerData[playerid][PlayerLevel] < 1) return SendClientMessage(playerid, -1, "{ff0000}you are not admin");
      if(sscanf(params, "u", ID)) return SendClientMessage(playerid, -1, "{ff0000}Use: /slap [ID]");
      new Float:Pos[3];
      GetPlayerPos(ID, Pos[0], Pos[1], Pos[2]);
      SetPlayerPos(ID, Pos[0], Pos[1], Pos[2]+10);
    }
    return 1;
}
Reply


Messages In This Thread
/giveweapon using names instead of id - by [LHT]Bally - 19.02.2012, 15:25
Re: /giveweapon using names instead of id - by Madd Kat - 19.02.2012, 15:40
Re: /giveweapon using names instead of id - by [LHT]Bally - 19.02.2012, 15:42
Re: /giveweapon using names instead of id - by Madd Kat - 19.02.2012, 15:44
Re: /giveweapon using names instead of id - by [LHT]Bally - 19.02.2012, 15:44
Re: /giveweapon using names instead of id - by Twisted_Insane - 19.02.2012, 15:57
Re: /giveweapon using names instead of id - by Madd Kat - 19.02.2012, 16:12
Re: /giveweapon using names instead of id - by [LHT]Bally - 19.02.2012, 16:22
Re: /giveweapon using names instead of id - by Madd Kat - 19.02.2012, 16:27
Re: /giveweapon using names instead of id - by emokidx - 19.02.2012, 16:27

Forum Jump:


Users browsing this thread: 3 Guest(s)