27.07.2009, 13:37
i need some help about teleports i have this bit of code:
and i go to the point i setup , and i type the comand , but it wont teleport me :/ ,, any suggestins?
btw i have this in a filterscript
pawn Код:
if(strcmp(cmdtext, "/pegaszhq" true)==0)
{
if (PlayerToPoint(3.0, playerid, 1223.3792,-977.5358,43.4766))
{
SetPlayerPos(playerid, 1286.0178,-985.4011,32.6953);
}
return 1;
}
if(strcmp(cmdtext, "/pegaszroom", true)==0)
{
if (PlayerToPoint(3.0, playerid, 1286.0178,-985.4011,32.6953))
{
SetPlayerPos(playerid, 1223.3792,-977.5358,43.4766);
}
return 1;
}
btw i have this in a filterscript