11.08.2011, 03:51
if(!strcmp(cmdtext, "/enter", true, 1))
{
IsPlayerInRangeOfPoint(playerid, 290.7193,-1618.0544,33.1547,179.7500);
SetPlayerPos(playerid, 288.745971,169.350997,1007.171875);
SetPlayerInterior(playerid, 3);
}
else if(!strcmp(cmdtext, "/enter", true, 1))
{
SendClientMessage(playerid, COLOR_YELLOW, "You can't enter here!");
return 1;
}
if(!strcmp(cmdtext, "/exit", true, 1))
{
IsPlayerInRangeOfPoint(playerid, 288.745971,169.350997,1007.171875);
SetPlayerPos(playerid, 290.4770,-1616.1808,33.1565);
SetPlayerInterior(playerid, 0);
return 1;
}
I scripted this myself, but it keeps coming up Server: Unknown command. And if I do /anything (anything as in any non scripted commands), it takes me to the /enter point.. help
{
IsPlayerInRangeOfPoint(playerid, 290.7193,-1618.0544,33.1547,179.7500);
SetPlayerPos(playerid, 288.745971,169.350997,1007.171875);
SetPlayerInterior(playerid, 3);
}
else if(!strcmp(cmdtext, "/enter", true, 1))
{
SendClientMessage(playerid, COLOR_YELLOW, "You can't enter here!");
return 1;
}
if(!strcmp(cmdtext, "/exit", true, 1))
{
IsPlayerInRangeOfPoint(playerid, 288.745971,169.350997,1007.171875);
SetPlayerPos(playerid, 290.4770,-1616.1808,33.1565);
SetPlayerInterior(playerid, 0);
return 1;
}
I scripted this myself, but it keeps coming up Server: Unknown command. And if I do /anything (anything as in any non scripted commands), it takes me to the /enter point.. help