26.03.2010, 07:13
Create a function:
Create a .inc file in your includes folder, add a line:
Open pawn and when you type GetMyFunctionParams( you will be shown what params to use.
Код:
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; }
Код:
native GetMyFunctionParams(playerid, Float:x, Float:y, Float:z, interior, world, money);