How to create a native?
#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


Messages In This Thread
How to create a native? - by laser50 - 26.03.2010, 06:50
Re: How to create a native? - by Rac3r - 26.03.2010, 07:13

Forum Jump:


Users browsing this thread: 1 Guest(s)