How to create a native? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to create a native? (
/showthread.php?tid=136676)
How to create a native? -
laser50 - 26.03.2010
I wanna place my functions into a_players, but i only see natives, now how do i make those?
Re: How to create a native? -
Rac3r - 26.03.2010
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.