26.10.2010, 10:55
Well, I did use the search function, but there were 11 pages and I went through only 2 pages 
Anyways, it's not working for me
Can anyone check if it's working for them, I did it exactly like in the tutorial, but not working. Here's my code.
If anyone can check if it's working for them.
The /enter command is at the CJ's garage in San Fierro, the one near the train station and Wang car shop.
Or just make a tp command if you want.
SetPlayerPos(playerid, -2034.5068,148.5365,28.8359);
/enter command works great, but the /exit doesn't.

Anyways, it's not working for me

Can anyone check if it's working for them, I did it exactly like in the tutorial, but not working. Here's my code.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/enter", cmdtext, true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 7, -2034.5068,148.5365,28.8359))
{
SetPlayerPos(playerid, -27.312300, -29.277599, 1003.549988);
SetPlayerInterior(playerid, 4);
return 1;
}
}
if(strcmp("/exit", cmdtext, true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 7, -27.312300, -29.277599, 1003.549988))
{
SetPlayerPos(playerid, -2034.5068,148.5365,28.8359);
return 1;
}
}
return 1;
}
The /enter command is at the CJ's garage in San Fierro, the one near the train station and Wang car shop.
Or just make a tp command if you want.
SetPlayerPos(playerid, -2034.5068,148.5365,28.8359);
/enter command works great, but the /exit doesn't.