01.03.2009, 18:29
Hi,
I've made something like this:
That should go under OnPlayerCommandText, but I made a small change and deleted (!strcmp("/Enter", cmdtext, true)
Where should I put the new code?
Regards
Born2die
I've made something like this:
pawn Код:
if(!strcmp("/Enter", cmdtext, true) && PlayerToPoint(1.5 ,playerid, Float: -691.5717,Float: 939.6139,Float: 13.6328))
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid,Float: -2158.72 ,Float: 641.29 ,Float: 1052.38);
return 1;
}
pawn Код:
if(PlayerToPoint(1.5 ,playerid, Float: -691.5717,Float: 939.6139,Float: 13.6328))
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid,Float: -2158.72 ,Float: 641.29 ,Float: 1052.38);
return 1;
}
Regards
Born2die