Simple questions
#1

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.
Reply
#2

@ 1:

SetPlayerPos
SetPlayerInterior
Reply
#3

pawn Код:
OnPlayerPickup(playerid, pickupid)
{
    if(pickupid == ######)
    {
        SetPlayerPos(playerid, xxxx.xxx,xxxx.xxx,xxxxx.xxx);
        SetPlayerInterior(playerid, x);
    }
    return 1;
}
Reply
#4

In OnGameModeInit put;
pawn Код:
EnableStuntBonusForAll(0);
to disable stunt bonuses
Reply
#5

Thank you so much everyone!
Reply
#6

But what about "SetVirtualWorldForPlayer" or ehatever itss called? Do i have tu use that?
Reply
#7

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"
Reply
#8

Ok, ty very much everyone, i figured it out now
Reply
#9

Quote:
Originally Posted by sim_sima
Посмотреть сообщение
Ok, ty very much everyone, i figured it out now
Yw, Glad to hear :P xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)