14.02.2010, 19:50
Hi guys i have this script
It works fine but i can't seem to teleport without a vehicle, why?
Код:
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; }