|
|
#11 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Sep 2010
Location: Northpole
Posts: 658
Reputation: 26
|
|
|
|
|
|
|
#12 |
|
Big Clucker
![]() ![]() Join Date: Jun 2010
Location: Well,Guess what? what? in my house xD
Posts: 165
Reputation: -3
|
lol with my small knowledge about pawn i have find a mistake a big mistake when the player enter you should add a SetPlayerInterior to set the player interior or he will jump in the air after entering and the same in /exit you should add a SetPlayerInterior(playerid, 0); so he will back to the normal interior
thanks for reading and hopefully you will correct it !! |
|
|
|
|
|
#13 |
|
Little Clucker
![]() Join Date: Jan 2011
Posts: 38
Reputation: 0
|
This tutorial = -0
|
|
|
|
|
|
#14 |
|
Big Clucker
![]() ![]() Join Date: Apr 2011
Posts: 102
Reputation: 0
|
Where place DisableInteriorEnterExits();,under GameModeinit?
|
|
|
|
|
|
#15 |
|
Big Clucker
![]() ![]() Join Date: Apr 2011
Posts: 102
Reputation: 0
|
Where to put DisableInteriorEnterExits();?
|
|
|
|
|
|
#16 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Dec 2009
Posts: 1,087
Reputation: 489
|
|
|
|
|
|
|
#17 |
|
Big Clucker
![]() ![]() Join Date: Apr 2011
Posts: 102
Reputation: 0
|
/enter not work man -_-
|
|
|
|
|
|
#18 |
|
Big Clucker
![]() ![]() Join Date: Apr 2010
Posts: 70
Reputation: 0
|
nice thanks to this tutorial
|
|
|
|
|
|
#19 |
|
Big Clucker
![]() ![]() Join Date: Apr 2011
Posts: 102
Reputation: 0
|
Well i follow you code but cant /enter ,this is my code:
Code:
#include <a_samp>
new driving;
public OnGameModeInit()
{
DisableInteriorEnterExits();
driving = CreatePickup(1239,1,2045.5084228516,-1908.2283935547,12.99134349823);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/enter",cmdtext,true,6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10,2045.5084228516,-1908.2283935547,12.99134349823))
{
SetPlayerPos(playerid,1299.14,-794.77,1084.00);
return 1;
}
}
if (strcmp("/exit",cmdtext,true,6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10,1299.14,-794.77,1084.00))
{
SetPlayerPos(playerid,2045.5084228516,-1908.2283935547,12.99134349823);
return 1;
}
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == driving)
{
GameTextForPlayer(playerid,"~r~ /enter ~y~ to enter this building",3000,1);
}
|
|
|
|
|
|
#20 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jul 2010
Location: 14th annual lemon party
Posts: 2,788
Reputation: 147
|
HOW it doesn't work, what's the problem, does it teleport you wrongly or? We can't just know, we aren't telepaths.
EDIT: Your OnPlayerCommandText is wrong, Use: pawn Code:
EDIT: Actually almost everything was wrong... |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|