How to create a native?
#1

I wanna place my functions into a_players, but i only see natives, now how do i make those?
Reply
#2

Create a function:
Код:
GetMyFunctionParams(playerid, Float:x, Float:y, Float:z, interior, world, money)
{
  SetPlayerPos(playerid,x,y,z);
  SetPlayerInterior(playerid, interior);
  SetPlayerVirtualWorld(playerid, world);
  GivePlayerMoney(playerid, money);
  return 1;
}
Create a .inc file in your includes folder, add a line:
Код:
native GetMyFunctionParams(playerid, Float:x, Float:y, Float:z, interior, world, money);
Open pawn and when you type GetMyFunctionParams( you will be shown what params to use.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)