29.11.2010, 15:24
Here is some easy tutorial.
What is this tutorial about?
You enter a checkpoint and it shows you a dialog"do you want to enter building or not".
YOU MUST HAVE STREAMER PLUGIN
So lets start..
On top of your script add
Under public OnGameModeInIt add
Find public OnPlayerEnterDynamicCP i under it add
Now we need to make what will happen if player chooses "Yes"
Under OnDialogResponse add
If you get error that tempstring is not defined,under public OnPlayerEnterDynamicCP
add
Sorry for my bad English,Im from Bosnia
dont watch posts,This is my first post on this forum because I come from balkan-samp.com
What is this tutorial about?
You enter a checkpoint and it shows you a dialog"do you want to enter building or not".
YOU MUST HAVE STREAMER PLUGIN
So lets start..
On top of your script add
Code:
new hello;
Code:
hello = CreateDynamicCP(x,y,z, 1.5, -1, -1, -1, 40.0);
Code:
if(checkpointid == hello) ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX," Do you want to enter this building",tempstring,"Yes","No");
Under OnDialogResponse add
Code:
if(dialogid == 1 && response) { SetPlayerPos(playerid,x,y,z); }
add
Code:
new tempstring[100];
dont watch posts,This is my first post on this forum because I come from balkan-samp.com