Teleport problem
#1

Hi guys i have this script
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/test", cmdtext, true, 5) == 0)
	{
	if (IsPlayerInAnyVehicle(playerid)) {
	SetVehiclePos(GetPlayerVehicleID(playerid), 242.5267, 5267.5267, 6178.6327);
	new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
  GetPlayerName(playerid, pname, sizeof(pname));
  format(string, sizeof(string), "%s has gone to /test.", pname);
  SendClientMessageToAll(COLOR_GREEN, string);
	}
	return 1;
	}
It works fine but i can't seem to teleport without a vehicle, why?
Reply


Messages In This Thread
Teleport problem - by yoan103 - 14.02.2010, 19:50
Re: Teleport problem - by Correlli - 14.02.2010, 19:51
Re: Teleport problem - by trindade02 - 14.02.2010, 20:04

Forum Jump:


Users browsing this thread: 2 Guest(s)