Simple questions - 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: Simple questions (
/showthread.php?tid=225993)
Simple questions -
sim_sima - 14.02.2011
Hello guys. Im learning scripting, and i have some questions that might be easy for you guys to anser.
1. I have disabled enterior enter/exits in my script. I used DisableInteriorEnterExits(); . Now i wanna make pickups, so i can choose the interiors myself. I know how to add those pickups, but i dont know how to make the player teleport to the interior. Hope you can help me with this.
2. How can i disable stunt bonus money?
Hope someone can help me. Thanks.
Re: Simple questions - Unknown123 - 14.02.2011
@ 1:
SetPlayerPos
SetPlayerInterior
Re: Simple questions -
marinov - 14.02.2011
pawn Код:
OnPlayerPickup(playerid, pickupid)
{
if(pickupid == ######)
{
SetPlayerPos(playerid, xxxx.xxx,xxxx.xxx,xxxxx.xxx);
SetPlayerInterior(playerid, x);
}
return 1;
}
Re: Simple questions -
Ash. - 14.02.2011
In OnGameModeInit put;
pawn Код:
EnableStuntBonusForAll(0);
to disable stunt bonuses
Re: Simple questions -
sim_sima - 14.02.2011
Thank you so much everyone!
Re: Simple questions -
sim_sima - 14.02.2011
But what about "SetVirtualWorldForPlayer" or ehatever itss called? Do i have tu use that?
Re: Simple questions - Unknown123 - 14.02.2011
Quote:
Originally Posted by sim_sima
But what about "SetVirtualWorldForPlayer" or ehatever itss called? Do i have tu use that?
|
No you dont, Just "SetPlayePos" and "SetPlayerInterior"
Re: Simple questions -
sim_sima - 14.02.2011
Ok, ty very much everyone, i figured it out now
Re: Simple questions - Unknown123 - 14.02.2011
Quote:
Originally Posted by sim_sima
Ok, ty very much everyone, i figured it out now
|
Yw, Glad to hear :P xD